Profit Margin Calculator
Enter cost and selling price to get profit, gross margin, and markup - or flip it around and find the price that hits a target margin.
- Free, no account
- No watermark
- No usage limit
About the Profit Margin Calculator
To hit a 40% margin you do not add 40% to your cost. Add 40% to a $60 cost and you get $84, which feels right and quietly lands you at a 28.6% margin instead of 40. If that stings a little, you have probably been doing it across a whole price list. This Profit Margin Calculator runs the math both directions. Put in a cost and a selling price and it hands back your profit, your gross margin, and your markup together. Or switch to the second mode, give it your cost and the margin you have to keep, and it solves backward for the exact price to charge. Everything runs in your browser, none of your numbers leave the page, and it recomputes the instant a number changes.
Most free margin calculators skip the direction that matters. They only run the easy way, cost and price in, percentages out, and honestly you can do a lot of that in your head. The one that actually sets your prices is the reverse: you know what something cost, you know the margin you need to survive, so what do you charge? Barely any tool builds that in, and the handful that do usually botch it by letting you add the percentage. Ours divides, because dividing is the only way to hit a real margin, and it puts the price and the profit side by side so you see the money the "add a percent" method costs you.
How to use
- Pick a direction. Find margin if you have the cost and price and want the percentages. Price from target margin if you have the cost and the margin you need, and want the price to charge.
- Enter your cost. Same field in both modes, what one unit cost you to make or buy. Materials, wholesale price, whatever you paid to get it ready to sell.
- Enter the second number. In margin mode that is your selling price. In price mode it is the margin percentage you are aiming for.
- Read the results. Margin mode returns profit, markup, and gross margin. Price mode returns the price to charge, the profit per unit, and the equivalent markup.
- Change a number and watch it move. Every field recomputes live, so you can try five prices in a few seconds.
Why adding the percentage underprices you
The mistake is natural enough that most people never catch it. You need a 40% margin, the item cost you $60, so you tack on 40% and charge $84. That feels correct and it is wrong. Adding 40% to cost is a 40% markup, and a 40% markup only leaves you a 28.6% margin. You meant to keep 40 cents of every dollar and you are keeping 28. On one sale that gap is small. Across a full catalog it is the reason a business with "healthy margins" is somehow always short on cash.
The correct formula divides:
price = cost / (1 - margin as a decimal)
For a 40% margin on a $60 cost, that is 1 minus 0.40 = 0.60, then $60 / 0.60 = $100. Charge $100 and exactly $40, which is 40% of the sale, stays with you. The reasoning is simpler than the formula looks. If you keep 40% of the price, your cost has to be the other 60%, so the price is your cost divided by 0.60. Price mode does the division for you. Worth understanding anyway, so you catch the error when someone quotes it at you.
Margin and markup aren't the same number
Same profit, different denominator, and that gap is what trips the pricing up. Markup measures profit against your cost. For margin you take that same profit and divide by the selling price instead. That $40 profit on a $60 item sold for $100 is a 66.67% markup and a 40% margin. Markup always reads bigger, because you are dividing by the smaller number.
Which number someone quotes you changes who is being straight with you. Suppliers love to quote markup, it sounds more generous than it is. Margin is the number an accountant uses, because it is the honest read on profitability. So when a rep says a product "does 40 percent," ask which one they mean, then drop both into margin mode. The tool prints margin and markup on the same line on purpose, so you are never quietly converting one into the other in your head and flipping it backward.
It won't hand you a number that lies
Plenty of calculators will cheerfully return garbage. Ask one for a 120% margin and it spits out a negative price or a blank. Margin is profit as a share of the price, so it physically cannot pass 100%, that would mean keeping more than the customer handed you. This one knows that, so set a target of 100% or higher and it tells you the price would run to infinity instead of faking a number. Leave a box empty and you get a dash and a short prompt, not an error. Sell below cost and it flags the loss instead of hiding a minus sign inside a percentage. Small things, but they separate a tool you can trust with a real price list from one you recheck by hand.
Putting price mode to work
The reverse calculation is how pricing gets set in real life. A boutique buys a dress for $40 and needs a 55% margin to cover the shop, so $40 / 0.45 is $88.89 and they tag it $89. A freelancer figures a project will run $1,200 in hours and tools and wants to keep 60%, so $1,200 / 0.40 puts the quote at $3,000. You give it the cost and the margin you need, it hands back the price, every time. It is also the quickest way to gut-check a discount. Knock 30% off a product you were holding a 30% margin on and there is nothing left, you are selling at cost, and it is cheaper to learn that in margin mode than after the sale.
Frequently asked questions
Is this gross, net, or operating margin?
Gross. It compares the selling price to the direct cost of that one item, which is what you want when you are pricing a product. Operating margin subtracts overhead too, rent, salaries, ad spend. Net margin takes off everything else, taxes, interest, one-off costs, and that is the true bottom line for a whole company. A product can post a strong gross margin here and still leave the business losing money once overhead lands, so use gross margin to set the price, then look at net before you call the whole business healthy.
How does margin tie into break-even?
Your gross margin is the slice of each sale that goes toward fixed costs, so a fatter margin means fewer sales before you are in the black. Take fixed costs divided by profit per unit. With $6,000 of monthly overhead and $40 of profit per sale, that is 150 sales to cover it, and sale 151 is your first real money. Push profit per unit to $50 and break-even drops to 120. A small margin gain moves that number more than people expect, because it repeats on every unit.
Can a markup really be over 100%?
Often, yeah. Markup is measured against cost, and nothing forces a price to stay near cost. Buy a plain stone for $5, set it in a ring, sell it for $500, that is a 9,900% markup. Software and perfume run markups in the thousands of percent routinely. Margin is the one with a hard ceiling at 100%, never markup, so any "150% margin" you hear quoted is really a markup with the wrong name on it.
What counts as the cost?
Everything it takes to get one unit ready to sell, and nothing that would be there regardless. For a product that is materials plus the wholesale price plus any direct labor or shipping to land it. Leave out rent, salaries, and general overhead, those belong in operating margin. For a service, the cost is your time valued honestly plus any tools or subcontractors that job needs. Undercount it and every margin the tool shows you reads rosier than the truth.
Where do coupons and card fees fit in?
They do not, unless you build them in yourself. This tool works off the cost and price exactly as you type them. If a 3% payment fee or a 10% coupon matters, shave it off the price before you enter it, or fold it into the cost. Either way the result changes, so it is worth doing before you read the margin.
Does anything I type get sent anywhere?
No. Every calculation happens in your browser, on your own device. Your costs, prices, and target margins are never uploaded, saved to a server, or logged. Once the page has loaded it keeps working with no connection at all, handy when you are pricing on the fly or on a weak signal.