Gross margin calculator
Enter what you charge and what it costs you. See the real margin, the markup, and the price you need to reach the margin you want. Compare up to ten products.
Runs in your browser. Nothing you enter is sent to us, and there is nothing to sign up for. Privacy
How to read the result
Margin is the share of each sale you keep after the cost of making and delivering it.
- Margin is profit divided by price. A 41% margin means 41 cents of every sales dollar is left after those costs.
- Markup is profit divided by cost. The same sale is a 69% markup. They are different numbers, and mixing them up is a common pricing mistake: a 50% markup is only a 33% margin.
- Where the price goes shows each cost as a share of the price. Start with the biggest line.
- The price for your target counts fees and discounts that grow with the price, so it is higher than cost divided by one minus the target.
- Combined margin weights each product by the units you sell, so one slow seller doesn’t hide behind a best seller.
How it’s calculated
- Costs per unit = product cost + shipping + packaging + other cost + (price × fee %) + (price × discounts and returns %).
- Profit per unit = price − costs per unit.
- Margin = profit ÷ price. Markup = profit ÷ costs.
- Price for a target margin = (product cost + shipping + packaging + other cost) ÷ (1 − fee % − discounts % − target margin).
- Combined margin = total profit ÷ total sales across your products, using units sold per month.
- Break-even sales = monthly overhead ÷ combined margin.
What it leaves out
This is margin on the direct costs of selling one unit.
It leaves out overhead such as rent, salaries and software, apart from the optional overhead line near the bottom. Where the line between direct costs and overhead falls is a call for you and your accountant. Payment fees are counted as a direct cost here. Use the same line every time, so your months can be compared.
FAQ
What is a good gross margin?
It depends on the business, so we don’t give one number. Compare your margin to your own past months and to your target, and ask your accountant what is normal in your industry.
What is the difference between margin and markup?
Both start from profit. Margin divides it by the price, markup divides it by the cost. A product that costs $60 and sells for $100 has a 40% margin and a 67% markup.
Should shipping and payment fees count as costs?
If you pay them on each sale, yes: they come out of what you keep. Leave shipping blank if the customer pays all of it.
Want the full picture? Read How to clean up your numbers, or see all the free tools.
Often used with this one
- Cash conversion cycle calculator – See how many days your cash is tied up, and what faster collection or leaner stock would free.
- 13-week cash flow tool – Enter cash in and out by week, see your lowest point, and test what happens if customers pay late.
Related guides and work
How to clean up your numbers
What to clean, how to clean it with your accountant, and what a buyer asks first.
Read the guide GuideHow to build a KPI dashboard
The numbers to track, sales first, and how to build a dashboard your team checks every week.
Read the guide ServiceOperations consulting
Reporting, handoffs and the systems behind the numbers, built and handed over.
Read →Margins slipping?
Tell us what is behind it. If it’s a fit, we’ll come back with a scope.
Scope your project

