Margin Calculator
Calculate margin percentage.
Educational estimate only — not investment, lending, or financial advice. Confirm figures with statements or a qualified professional before you act.
About this tool
Use this when you are setting a price. Find the price that gives a target margin, the highest cost you can pay for a price and margin, or convert a markup percentage to a margin and back.
How to use
How it works
Price from margin divides cost by (1 − margin), because margin is a share of the price. The cost ceiling multiplies price by (1 − margin). Converting markup m to margin is m ÷ (1 + m), and margin g to markup is g ÷ (1 − g). Margin has to be below 100%.
price = cost ÷ (1 − margin) max cost = price × (1 − margin) margin = markup ÷ (1 + markup)
Worked example
Pricing for a 35% margin
- Input
- Cost 65; target margin 35%
- Output
- Price 100.00
- Walkthrough
- 65 ÷ (1 − 0.35) = 65 ÷ 0.65 = 100. Check: profit is 35, which is 35% of 100. For the cost ceiling, a price of 120 at a 40% margin allows a cost of at most 72.
Limitations
- Margin must be under 100%.
- Gross margin only; no tax, fees or overheads.
Questions
What is the difference between margin and markup?
How do I convert 50% margin to markup?
How do I find the most I can spend on a product?
Why can't I use a 100% margin?
Features
- Four calculation modes
- Markup and margin converter
- Price from target margin
- Cost ceiling
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Finding a percentage
Khan Academy
Tax and discount percentages on invoices.
Watch on YouTubePDF, What is it FOR?
Computerphile
Invoices and quotes often ship as fixed-layout PDF packets.
Watch on YouTube
- Manage your finances
U.S. Small Business Administration
Official SMB finance basics next to invoice and rate tools.
- How to price your products and services
Entrepreneur
Pricing frameworks that pair with freelance rate calculators.