Margin Calculator
Calculate gross margin, markup, and profit. You can also solve for the selling price using a target margin or markup.
Enter your total effective cost (e.g., item cost + fees) if needed.
Privacy: calculations run locally in your browser. No inputs are stored or transmitted.
How it works
Profit: price − cost
Margin % (gross margin): (price − cost) ÷ price × 100
Markup %: (price − cost) ÷ cost × 100
Price from target margin: price = cost ÷ (1 − marginRate)
Price from target markup: price = cost × (1 + markupRate)
Examples
- Cost 60, price 80 → profit 20 → margin 25% → markup 33.33%
- Cost 60, target margin 25% → price 80
- Cost 60, target markup 25% → price 75
When to use this tool
This tool is designed for quick, practical tasks such as everyday calculations, data formatting, or simple conversions. It is best used when you need fast results without installing software or using complex tools.
When to use
- Quick checks or one-time calculations
- Validating or converting data before using it elsewhere
- Simple tasks that do not require advanced software
When not to use
- Critical financial, legal, or medical decisions
- Large-scale or automated processing
- Situations requiring guaranteed precision beyond basic validation
Always review results before using them in important contexts.
About this tool
This tool helps you perform quick utility operations directly in your browser. It runs entirely in your browser without sending data to a server.
You can use this tool when handling simple tasks without installing additional software. The results should be interpreted as a processed output based on your input data.
FAQ
- What is profit margin?
Profit margin (gross margin) is profit divided by selling price: margin% = (price − cost) ÷ price × 100.
- What is markup?
Markup is profit divided by cost: markup% = (price − cost) ÷ cost × 100. Markup and margin are different.
- How do I get price from cost and margin?
price = cost ÷ (1 − marginRate). Example: cost 60, margin 25% → price = 60 ÷ 0.75 = 80.
- How do I get price from cost and markup?
price = cost × (1 + markupRate). Example: cost 60, markup 25% → price = 60 × 1.25 = 75.
- Can margin be 100%?
A 100% margin would require cost to be 0. If cost is positive, margin will be below 100%.
- Does this include taxes, shipping, or fees?
No. Enter your full effective cost (including any fees) if you want them reflected in the result.