Profit Margin Calculator
Enter cost and selling price to get gross margin, profit and the matching markup. See why a 40% margin is not a 40% markup. Free calculator.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Profit Margin Calculator
Gross margin, markup and profit from cost and selling price.
The Profit Margin Calculator takes a cost and a selling price and returns the gross margin as (price minus cost) divided by price, alongside the cash profit and the equivalent markup, which divides the same profit by cost instead. Enter 60 and 100 and you get a 40 percent margin, 40 in profit and a 66.67 percent markup — the two percentages that people most often confuse. It is for anyone pricing a product, checking a quote or sanity-testing a supplier deal.
How to use Profit Margin Calculator
Enter the cost of your product or service into the Profit Margin Calculator to establish your base expense
Input the selling price of your product or service to calculate the revenue generated
There is no calculate button; the Result panel updates live as you type, reading '40.00% margin' for the 60 and 100 defaults, with Profit and Markup shown beneath it as 40 and 66.67%
Why use Profit Margin Calculator
Margin and markup side by side
Both percentages come out of the same cost and price, which is the fastest way to stop confusing the two.
Cash profit, not just a percentage
The absolute profit is shown next to the ratios, so a high margin on a small ticket does not look better than it is.
Two inputs, no setup
Cost and selling price are the only fields, so you can re-check a price in the middle of a negotiation.
Common use cases
- Checking whether a wholesale price still clears your target margin after a supplier raises the unit cost, before you agree the new terms.
- Translating a supplier's quoted markup into the margin your accountant actually asks for, since a 50 percent markup is only a 33.33 percent margin.
- Pricing a freelance job by entering your true cost of delivery and the fee you plan to quote, to see what proportion of the invoice is actually profit.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides the same profit by the cost. A product costing 60 and selling at 100 has a 40 percent margin but a 66.67 percent markup, and markup is always the larger of the two figures for a profitable sale.
Link to answerHow do I calculate gross profit margin?
Subtract the cost from the selling price, divide by the selling price, then multiply by 100. That is exactly what this calculator does, so cost 60 and price 100 gives (100 - 60) / 100 = 40 percent.
Link to answerWhat is a good profit margin?
It depends entirely on the trade — grocery retail commonly runs on single-digit gross margins while software can exceed 80 percent — so compare against your own sector rather than a universal target. Use this figure as gross margin only; it excludes overheads, wages and tax, and a tax adviser or accountant should confirm your net position.
Link to answerCan the margin be negative?
Yes, if the cost is higher than the selling price the profit is negative and so is the margin, which means you are selling at a loss. A margin of exactly 0 percent means you are covering cost and nothing else.
Link to answerEmbed this tool on your site
Add the Profit Margin Calculator widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/margin-calculator"
title="Profit Margin Calculator — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/margin-calculator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>