Margin Calculator: Profit Margin & Markup Calculator

Use this free margin calculator to work out your profit, profit margin and markup in seconds. Enter what an item costs you and what you sell it for, and the calculator shows all three. It can also work backwards and tell you what price to charge to hit a target margin or markup.

Cost and selling price

What the item costs you to make or buy.
This field is required.
What the customer pays (before sales tax).
This field is required.

Your results

Profit ÷ selling price
Profit ÷ cost

Find the price for a target margin or markup

This field is required.
Cost ÷ (1 − margin)
This field is required.
Cost × (1 + markup)

How to use the margin calculator

  1. Enter your cost. This is what the item costs you to make or buy, including shipping in and packaging if you want a true figure.
  2. Enter your selling price. Use the price the customer pays, before sales tax.
  3. Read your results. The calculator shows your profit in dollars, your profit margin as a percentage of the price, and your markup as a percentage of the cost.
  4. Need a price instead? Enter a target margin or target markup and the calculator gives you the selling price that hits it.

Profit margin and markup formulas

  • Profit = selling price − cost
  • Profit margin = profit ÷ selling price × 100
  • Markup = profit ÷ cost × 100
  • Price from a target margin = cost ÷ (1 − margin)
  • Price from a target markup = cost × (1 + markup)

Example: an item costs $60 and sells for $100. Profit is $40. The margin is $40 ÷ $100 = 40%, and the markup is $40 ÷ $60 = 66.67%.

Margin vs markup: what is the difference?

Both measure the same profit, but against a different base. Margin compares profit with the selling price, so it tells you how much of each sale you keep. Markup compares profit with the cost, so it tells you how much you added on top of what you paid. Markup is always the higher number for the same sale, and mixing the two up is a common pricing mistake: adding a 30% markup does not give you a 30% margin.

Profit marginEquivalent markup
10%11.11%
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%

To convert yourself: markup = margin ÷ (1 − margin), and margin = markup ÷ (1 + markup).

Gross margin, net margin and contribution margin

  • Gross margin uses the direct cost of the product (cost of goods sold). This is what the margin calculator above shows when you enter your product cost.
  • Net profit margin takes away every business cost, including rent, wages, software, ads and tax, from total revenue, then divides by revenue. Enter your total costs and total revenue to use the calculator for net margin.
  • Contribution margin uses only variable costs (costs that rise with each sale). It shows how much each sale contributes to paying your fixed costs.

How to calculate profit margin for your business

  • Count every cost per item. Include materials, packaging, payment processing and marketplace fees, not just the purchase price.
  • Check margins by product. A healthy average can hide items that lose money.
  • Price from margin, not markup. Decide the margin you need, then use the target-margin field to find the price.
  • Track it in your accounting software. Tools like QuickBooks, Xero and Sage report gross margin automatically. Compare them in our QuickBooks vs Xero and Sage vs QuickBooks guides.

Margin calculator for Etsy and online sellers

If you sell on a marketplace, add its fees to your cost before you calculate. Listing fees, transaction fees and payment processing all come out of each sale, so leaving them out makes your margin look higher than it is. Our Fiverr vs Etsy comparison explains how the two platforms charge sellers. If you run ads, your margin also sets your break-even return on ad spend: plan your spend with our PPC budget calculator.

Frequently asked questions

What is a good profit margin?

It depends on your industry. Businesses with low costs, such as software and services, often run much higher margins than retailers and restaurants. Compare yourself with businesses like yours, and make sure your net margin covers your overheads and leaves profit.

How do I calculate a 30% margin?

Divide your cost by 0.7. An item that costs $70 needs a price of $100 for a 30% margin. Enter your cost and 30 in the target margin field and the margin calculator does it for you.

Is markup or margin higher?

Markup is always higher than margin for the same sale, because it divides the profit by the smaller number (the cost). A 50% margin equals a 100% markup.

Can a profit margin be negative?

Yes. If the selling price is lower than the cost, profit, margin and markup all show as negative, which means you lose money on each sale.

Is this margin calculator free?

Yes. It is free with no sign-up, and nothing you enter is stored.

More free calculators