Free Calculator · No signup needed

Profit Margin Calculator

Enter any two values and get the rest solved instantly, including the markup equivalent most calculators leave out. Add overhead for your true net margin, and compare products side by side.

What do you know?

Rent, software, shipping, ad spend allocated to one sale

Your Margin

Gross Margin

40.0%

Profit per sale

$40.00

Markup equivalent

66.7%

Cost

$60.00

Selling price

$100.00

Want this analysis in your inbox?

Get your margin result with a shareable link you can find again later, plus a one-page guide on setting margins by industry so you know whether your number is strong or thin.

No spam. Unsubscribe anytime. The calculator stays fully free either way.

How This Calculator Works

Profit margin answers one question: of every dollar a customer hands you, how much do you keep? The formula divides your profit by the selling price. Sell something for $100 that cost you $60, and your $40 profit divided by the $100 price gives a 40% gross margin.

Profit = Price − Cost
Margin % = Profit ÷ Price × 100
Markup % = Profit ÷ Cost × 100
Price for target margin = Cost ÷ (1 − Margin)

The reverse mode is where most pricing mistakes get caught. If you want a 30% margin on a product that costs $70, the intuitive move is to add 30% to the cost, which gives $91. That price only earns you a 23% margin. The correct calculation divides the cost by 0.70, which gives $100, because margin is measured against the price you have not set yet. This tool does that division for you in the "Cost + Target margin" mode.

We also show the markup equivalent next to every result, because suppliers, distributors, and retail buyers often quote markup while accountants and investors talk margin. The same $40 profit on a $60 cost is a 40% margin and a 66.7% markup at the same time. Confusing the two in a negotiation costs real money, since a "50% markup" sounds close to a "50% margin" but leaves you with a third less profit. Our markup calculator works the same problem from the other direction.

The optional overhead field turns gross margin into net margin. Gross margin only counts what the product itself cost you. If rent, software, packaging, and ad spend add $15 to every sale, your 40% gross margin on that $100 sale is really a 25% net margin. Estimating overhead per sale is rough by nature (divide monthly overhead by monthly sales for a workable number), but even a rough net figure prevents the classic trap of a business that looks profitable per product and loses money per month. When you know your per-unit numbers, the next question is volume, and that is exactly what our break-even point calculator answers.

Frequently Asked Questions

How do I calculate profit margin?

Subtract your cost from your selling price to get profit, divide that profit by the selling price, then multiply by 100. Selling at $100 with a $60 cost gives ($100 − $60) ÷ $100 × 100 = 40% margin.

What is the difference between margin and markup?

Margin divides profit by the selling price; markup divides the same profit by the cost. A $40 profit on a $100 sale is a 40% margin but a 66.7% markup, because the $40 is compared against the $60 cost instead of the $100 price.

What is a good profit margin?

It depends on the industry. A 10% net margin is considered healthy for many small businesses, 20% is strong, and 5% is thin. Software and services often run 60-80% gross margins while grocery retail runs under 5% net.

How do I price a product for a 30% margin?

Divide your cost by 0.70 (that is, 1 minus 0.30). A product that costs you $70 needs a $100 price for a 30% margin. Use the "Cost + Target margin" mode above and the tool does this for you.

What is the difference between gross margin and net margin?

Gross margin only subtracts the direct cost of the product (COGS). Net margin also subtracts overhead such as rent, software, payroll, and marketing allocated to the sale, so it shows what you truly keep. Add an overhead figure above to see both.