Profit Margin Calculator
Instantly work out profit margin, profit, selling price, or cost — just enter any two values. Supports 6 calculation patterns, tax-inclusive input, and calculation history. Free, no sign-up.
Tax setting:
This tool has been used … times.
| Cost | Price | Margin | Margin(%) | Profit (excl. tax) | ||||
| Find Margin | % | |||||||
| Find Price | % | |||||||
| Find Cost | % | |||||||
| Find Price & Margin | % | |||||||
| Find Cost & Margin | % | |||||||
| Find Cost & Price | % |
Show History
How to Use
Profit Margin Formula
Profit margin (%) = profit ÷ selling price × 100
Profit = selling price − cost
Selling price = cost ÷ (1 − margin)
Cost = selling price × (1 − margin)
Example: a cost of 700 sold at 1,000 gives a profit of 300 and a margin of 30%. Enter the cost and price in row 1 and the tool runs this calculation automatically.
6 Calculation Patterns
Row 1: Enter cost and selling price → Get margin and profit
Row 2: Enter cost and margin → Get selling price and profit
Row 3: Enter selling price and margin → Get cost and profit
Row 4: Enter cost and profit amount → Get selling price and margin
Row 5: Enter selling price and profit amount → Get cost and margin
Row 6: Enter margin and profit amount → Get cost and selling price
Tax Settings
Select “No Tax” to use values as-is, or “Tax (incl.)” to enter a custom tax rate. When a tax rate is set, entered cost and price are treated as tax-inclusive, and the tax portion is removed before calculating profit. All profit figures are always shown excl. tax. The tax rate is saved automatically.
Margin Color Coding
Red: Negative (loss)
Orange: 0–20% (low margin)
Yellow-green: 20–40% (medium margin)
Green: 40%+ (high margin)
Calculation History
Click “Show History” to view the last 5 calculations. Use the × button to remove individual entries, or “Delete All” to clear everything. “Clear” resets all input fields.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price: (price − cost) ÷ price × 100. Markup is profit as a percentage of the cost: (price − cost) ÷ cost × 100. This tool calculates margin, so a cost of 700 sold at 1000 gives a 30% margin (which is about a 43% markup).
Is this the same as a gross profit margin calculator?
Yes. The margin calculated here is the gross profit margin: it subtracts only the cost of the item (selling price − cost) and does not account for operating expenses such as labor or rent. The Profit column shows the gross profit amount.
What is the profit margin formula?
Profit margin (%) = (selling price − cost) ÷ selling price × 100. For example, a cost of 700 and a price of 1000 give a profit of 300 and a margin of 30%. Enter the cost and price and the tool calculates this automatically.
How do I find the selling price from a target margin?
Selling price = cost ÷ (1 − margin). To reach a 30% margin on a cost of 700, the price is 700 ÷ 0.7 = 1000. Use the second row, “Find Price,” and enter the cost and target margin.
How are cost ratio and profit margin related?
Cost ratio (%) = cost ÷ selling price × 100, and together with the margin it always adds up to 100% (cost ratio = 100 − margin). A 30% margin means a 70% cost ratio. If you have a target cost ratio, enter 100 minus that value as the margin and the tool returns the matching price or cost.
Is this profit margin calculator free?
Yes. It runs entirely in your browser, needs no sign-up, and works on both desktop and mobile. Your inputs are never sent to a server.
