Profit Margin Calculator

Enter your cost and selling price to get gross profit, margin % and markup % instantly — or flip it around and enter a target margin to see the price you need to charge.

Margin and markup are not the same number

These two terms get swapped constantly, and the mix-up costs sellers real money. Margin is profit as a percentage of your selling price: Margin % = (Price − Cost) ÷ Price × 100. Markup is profit as a percentage of your cost: Markup % = (Price − Cost) ÷ Cost × 100. Same profit dollar amount, different denominator — and because price is always bigger than cost on a profitable sale, margin is always a smaller percentage than markup on the same transaction.

Concretely: a product that costs $10 and sells for $15 has a $5 profit. That's a 50% markup (5 ÷ 10) but only a 33.3% margin (5 ÷ 15). Sellers who set prices by "marking up 50%" often assume they're also getting a 50% margin — they're not, and the gap widens as the markup percentage grows.

The two formulas, and when to use each

Use Margin % = (Price − Cost) ÷ Price × 100 when you already know your price and cost and want to check profitability against a target — most retail and e-commerce planning talks in margin, because it's a direct percentage of revenue.

Use Price = Cost ÷ (1 − Margin%/100) when you know your cost and want to hit a specific margin. This is the formula the calculator's second mode uses. It's easy to get wrong by hand: a common error is computing Price = Cost × (1 + Margin%), which actually calculates a markup-based price, not a margin-based one, and undershoots your target margin.

A worked example

Say a product costs $10 to make or source, and you sell it for $25. Gross profit is $25 − $10 = $15. Margin is $15 ÷ $25 = 60%. Markup is $15 ÷ $10 = 150%. Now suppose instead you know the cost is $10 and you want a 60% margin, but don't know what price to charge: Price = $10 ÷ (1 − 0.60) = $10 ÷ 0.40 = $25 — the same number, worked backwards.

CostTarget marginRequired priceProfit / unitMarkup
$1020%$12.50$2.5025%
$1040%$16.67$6.6766.7%
$1060%$25.00$15.00150%
$1080%$50.00$40.00400%
Same $10 cost at different target margins — notice how markup accelerates much faster than margin as the target rises.
Key takeaway: As margin approaches 100%, markup grows without bound (a 90% margin needs a 900% markup). If you're setting prices by markup alone, sanity-check the resulting margin — it's usually lower than you expect, especially at higher markup percentages.

Tips for using margin in pricing decisions

Gross margin here only reflects cost of goods versus price — it doesn't account for shipping, payment processing, marketplace fees, advertising, returns or overhead. Those all eat into the number further, so treat this margin as a ceiling, not your final take-home profit. If you sell through a marketplace like Amazon and want those costs built in, the Amazon FBA Calculator walks through referral fees, fulfillment fees and ad spend to get to a true net profit and ROI.

When comparing margins across products, remember that a lower-margin, higher-volume item can out-earn a higher-margin, low-volume one in total profit — use the quantity field above to compare total profit, not just the percentage, when deciding where to focus. A product with a thin 15% margin selling 1,000 units a month can easily out-earn one with a fat 50% margin selling only 50 units, even though the second product "looks" more profitable on a spec sheet.

Common margin mistakes worth avoiding

The single most frequent error is treating a target markup as if it were the equivalent margin — for example, assuming "I marked it up 50%, so I'm keeping 50% of the sale" when in fact a 50% markup only produces a 33.3% margin. The second most common mistake is pricing purely off cost without checking what the resulting margin looks like once a marketplace's fees, payment processing and average return rate are subtracted — a healthy-looking 40% margin on paper can shrink to single digits once a 15% referral fee and a return allowance are layered on top. A third mistake is anchoring to a single "industry standard" margin figure pulled from an unrelated business, rather than working from your own true landed cost and the price the market will actually bear.

It also helps to revisit margin whenever a cost input changes — a supplier price increase, a new shipping surcharge, or a currency shift can quietly erode margin on a product whose selling price hasn't moved in months. Re-running the numbers periodically, rather than only when a price change is already under discussion, catches margin erosion before it becomes a real problem.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit divided by selling price; markup is profit divided by cost. They use the same profit number but different denominators, so they're never equal except at 0%. A 50% markup on a $10 cost gives a $15 price, but the margin on that $15 price is only 33.3% — a very common source of pricing mistakes.

How do I calculate profit margin?

Subtract cost from selling price to get gross profit, then divide by selling price and multiply by 100: Margin % = (Price − Cost) ÷ Price × 100. For example, a $25 item costing $10 has a $15 profit and a 60% margin.

How do I find the price for a target margin?

Divide cost by (1 minus the target margin as a decimal): Price = Cost ÷ (1 − Margin%/100). A $10 cost with a 40% target margin needs a price of $10 ÷ 0.60 = $16.67. Don't just add the margin percentage to cost — that's markup, and it produces a lower actual margin than intended.

What's a good profit margin?

It depends heavily on the industry — grocery and distribution often run 2–10% net margin, while software and services can run 60–90% gross margin. There's no universal target; compare your margin to others in your category and to your own costs of doing business (fees, shipping, ads, overhead) rather than a generic benchmark.

Does this calculator include fees, shipping or ads?

No — this tool calculates margin and markup from a single cost and price figure only. If you sell on a marketplace like Amazon and want fees, fulfillment and ad spend included, use the Amazon FBA Calculator, which walks through each of those costs separately.

Can I calculate totals for multiple units?

Yes. Enter a quantity and the calculator shows total revenue, total cost and total profit for that many units, using the same per-unit cost, price, margin and markup.

Last updated: July 2026 · How we calculate

BriskToolbox provides estimates for general information only and is not financial or business advice. Verify figures against your own costs and pricing before making business decisions.