Business & E-commerce
Profit Margin & Markup Calculator
Calculate profit, gross margin and markup from cost and price — or find the selling price you need for a target margin or markup.
How to use
- 1Choose what you know: cost and price, or cost and a target margin or markup.
- 2Read the profit, margin and markup — and the price if you set a target.
How it's calculated
Profit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. Price for a target margin = cost ÷ (1 − margin).
Frequently asked questions
What's the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of cost. A $50 item sold for $100 has 50% margin but 100% markup.
Why can't margin be 100% or more?
Margin is a share of the price, so even a free product (zero cost) only reaches 100%. Markup has no upper limit.
What's a good profit margin?
It varies widely by industry — grocery retail often runs on 1–3% net margin, while software can exceed 70% gross margin.
Margin and markup measure the same dollars against different bases
Margin divides profit by the selling price; markup divides the same profit by the cost. They're not two names for one number — on a $50 cost item sold for $80, the $30 of profit is 37.5% of the $80 price but 60% of the $50 cost. The gap between the two widens as margin rises, which is why a supplier quoting '60% markup' and a retailer quoting '60% margin' are describing very different profitability.
Worked example: Profit Margin & Markup Calculator
Cost $50, price $80: profit is $80 − $50 = $30, margin is $30 ÷ $80 = 37.5%, and markup is $30 ÷ $50 = 60%. Now flip it around — say you know the cost ($60) and want a 40% margin instead of a price. The calculator solves price = cost ÷ (1 − margin) = $60 ÷ 0.60 = $100, which works out to a 66.67% markup. Notice that's not the same as just adding 40% to the cost (which would give $84) — that's the single most common pricing mistake this tool exists to prevent.
Why margin can never reach 100%
Because margin is profit as a share of price, even giving a product away for free (zero cost) only pushes margin toward 100%, never past it — the price itself is the ceiling. Markup has no such limit: a $1 item sold for $1,000 has a 99.9% margin but a 99,900% markup. If a margin figure you're given is 100% or higher, it's almost certainly a markup mislabeled as a margin.
The headline switches when I am solving for a price
When I know cost and selling price, which is how the page opens, profit is the large result and the price I typed is not repeated as an output. When I switch to a target margin or a target markup, the selling price becomes the large result, because that is the number I did not know. A target margin of 100 or more is rejected, since the price formula would divide by zero or go negative. Markup has no such cap: 100 percent markup on a 50 cost returns a price of 100. A cost of zero makes markup show as zero rather than an error, while margin still uses the price. The price has to end up above zero or the page stops.
Related tools
- Price Increase Impact Calculator
See how a price increase affects revenue and profit — and how many customers or sales you could lose before it stops paying off.
- Amazon FBA Profit Calculator
Work out profit, margin and ROI for a product sold through Fulfillment by Amazon — referral fee, FBA fulfillment fee, monthly storage, inbound shipping, product cost and ads — per unit and per month.
- Airbnb / Short-Term Rental Income Calculator
Estimate short-term rental income and profit — nightly rate, occupancy, cleaning fees, platform fees, cleaning costs, utilities, management and mortgage — and compare it with a long-term rent.
- Web Hosting Cost Comparison Calculator
Compare the real multi-year cost of web hosting plans — introductory vs renewal prices, domain renewals, SSL, email and backups — so a cheap first-year deal doesn't hide an expensive renewal.
- Food Cost & Menu Pricing Calculator
Price a dish from its ingredient cost and target food-cost percentage, and see the gross profit per plate — the method restaurants use for menu pricing.
- 3D Print Cost Calculator
Estimate the cost of a 3D print from filament used, filament price, print time, printer power and machine wear — plus a selling price with markup.