Home › Guides › How to Calculate Profit Margin and Markup

How to Calculate Profit Margin and Markup

How to Calculate Profit Margin and Markup – a FormatVolt guide

Short answer: Profit margin = (price − cost) ÷ price × 100, and markup = (price − cost) ÷ cost × 100. Enter your cost and selling price in the free Profit Margin Calculator to see profit, margin and markup, or enter a target margin to find the price you need to charge.

By FormatVolt · Updated November 14, 2026

Key Takeaways

The Short Answer

Margin and markup both describe profit, but against different bases. Margin is a share of the selling price. Markup is a share of the cost. The Profit Margin Calculator has two parts: one finds profit, margin and markup from cost and price, and the other finds the price needed for a target margin.

How to use the Profit Margin Calculator

  1. Open the Profit Margin Calculator.
  2. For margin, enter your cost and your revenue or selling price.
  3. For pricing, enter your cost and the margin you want to earn.
  4. Read profit, margin, markup and the price needed.
Screenshot of the FormatVolt Profit Margin Calculator with red numbered marks showing the steps
The steps in the FormatVolt Profit Margin Calculator. Screenshot of a real calculation with sample numbers.

Margin and markup formulas

Worked example: a product costing 60 and selling for 100 earns 40 of profit. The margin is 40 ÷ 100 = 40%, while the markup is 40 ÷ 60 = 66.67%. To earn a 30% margin on a cost of 70, the price must be 70 ÷ 0.70 = 100.

Margin is not markup

MarkupResulting margin
25%20.0%
50%33.3%
100%50.0%

Margin is a share of the selling price; markup is a share of the cost. A 50% markup gives only a 33.3% margin: cost 100, price 150, profit 50, and 50 ÷ 150 = 33.3%. Mixing them up is a common reason prices end up too low, so check which one your supplier, shop platform or accountant means.

Pricing for a target margin

To earn a 40% margin on a cost of 50, divide by 0.60: 50 ÷ 0.60 = 83.33. The profit is 33.33, and 33.33 ÷ 83.33 = 40%. Multiplying the cost by 1.40 would give only 70, a margin of about 28.6%. Use the second part of the calculator whenever you start from a margin target.

What the figures include

This is gross profit based only on the cost you enter. For a net figure, include shipping, payment fees, advertising, wages, rent and tax in the cost. A product with a healthy gross margin can still lose money after these costs, so treat the result as a first check. If a discount is planned, test it with the Discount Calculator and see our guide on calculating a discount.

Common mistakes

Diagram: Cost 60, price 100: margin versus markup
Cost 60, price 100: margin versus markup. Illustration with the numbers used in this guide.

Key Terms at a Glance

Frequently asked questions

Is the calculator free?

Yes. There are no limits or sign-ups.

Is anything stored or uploaded?

No. The numbers are calculated in the browser and nothing is uploaded or stored.

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of the cost.

How do I price for a 30% margin?

Divide the cost by 0.70. A cost of 70 needs a price of 100.

Does the result include shipping and fees?

Only if you add them to the cost.

Can margin be higher than 100%?

No. Margin cannot exceed 100% of the price, but markup can.

More free tools on FormatVolt

Last updated: November 14, 2026