Add 30% to the cost and your margin comes out at 23%.
Markup is a share of the cost, margin a share of the price. With a cost of $100 and a price of $130, the $30 left is 23.1% of the price.
Merchgain shows the margin, profit divided by revenue, for every product. No install needed: the margin vs markup calculator →