MARGIN CALCULATOR
Calculate margin, price, or cost from any two of the three. Nothing leaves your browser.
In short
Calculate gross profit margin, selling price, or cost from any two of the three — cost, margin, and price. Runs entirely in your browser.
Cost50.00
Margin30%
Selling price71.43
Profit21.43
How to use the margin calculator
- 1
Choose which two values you know: cost & margin, cost & price, or price & margin.
- 2
Enter those two values.
- 3
Read the missing value, plus the resulting profit.
Questions
- What's the formula for gross profit margin?
- Margin % = (selling price − cost) ÷ selling price × 100. Unlike markup, margin is profit as a percentage of the selling price, not the cost.
- How is margin different from markup?
- Margin divides profit by price; markup divides profit by cost. A $50 cost item sold for $75 has a 50% markup but only a 33.3% margin — the two numbers describe the same sale differently. Use the Markup Calculator for the cost-based version.
- What's a healthy profit margin?
- It varies widely by industry — retail often runs 20-50%, software and services can be much higher, while grocery and wholesale margins are often in the single digits. Compare to your specific industry's benchmarks rather than a universal target.
- Is my pricing data sent anywhere?
- No. All calculations run locally in your browser with JavaScript — nothing is transmitted or stored.
Related tools
- Markup CalculatorCalculate selling price, markup percentage, or cost from any two of the three.
- Break-Even CalculatorFind the break-even unit volume and revenue from fixed costs, price, and variable cost.
- Tax Percentage CalculatorFind the tax rate from a total and the tax paid, or from pre-tax and post-tax amounts.
- VAT CalculatorAdd or remove VAT from a price at any rate, with the tax amount shown separately.
- Mortgage CalculatorCalculate a monthly mortgage payment, total interest, and payoff amount.
- Salary CalculatorConvert between hourly, daily, weekly, monthly, and annual pay.
- Loan Payment CalculatorCalculate monthly loan payments, total interest, and a payoff amortization summary.
- ROI CalculatorCalculate Return on Investment as a percentage from cost and profit, or initial and final values, with optional annualized ROI.
Updated