Margin Calculator — Free Online Margin Tool
Calculate your profit margin, markup percentage, and profit amount from cost and selling price.
Margin vs Markup
Margin is the percentage of the selling price that is profit. Markup is the percentage of the cost price added as profit. A 50% markup produces only a 33.3% margin.
Margin Results
Cost vs Profit Breakdown
Margin and Markup Reference Table
| Cost | Selling Price | Profit | Margin | Markup |
|---|---|---|---|---|
| $10.00 | $15.00 | $5.00 | 33.3% | 50.0% |
| $25.00 | $50.00 | $25.00 | 50.0% | 100.0% |
| $40.00 | $65.00 | $25.00 | 38.5% | 62.5% |
| $75.00 | $125.00 | $50.00 | 40.0% | 66.7% |
| $150.00 | $299.00 | $149.00 | 49.8% | 99.3% |
| $500.00 | $1,200.00 | $700.00 | 58.3% | 140.0% |
Related Calculators
Profit Calculator
Calculate gross and net profit with revenue breakdown
Discount Calculator
Calculate single and stacked discount savings
Percent Off Calculator
Quickly calculate sale prices with preset discounts
VAT Calculator
Add or remove VAT/sales tax from any amount
Percentage Calculator
Calculate percentages, increases, and decreases
ROI Calculator
Calculate return on investment for any asset
About this calculator
Understanding the Margin Formula
Profit margin and markup are two ways of expressing the same relationship between cost, revenue, and profit. Understanding both formulas is essential for pricing products correctly and communicating profitability to stakeholders.
Margin (%) = ((Selling Price − Cost) / Selling Price) × 100
Markup (%) = ((Selling Price − Cost) / Cost) × 100
Where each variable represents:
- Selling Price = The price charged to the customer (revenue per unit)
- Cost = The total direct cost to produce or purchase one unit
- Margin = Profit as a percentage of the selling price
- Markup = Profit as a percentage of the cost
Step-by-Step Calculation Example
A retailer purchases wireless earbuds for $45 and sells them for $80. Calculate both margin and markup:
- Calculate profit: $80 − $45 = $35
- Calculate margin: ($35 / $80) × 100 = 43.75%
- Calculate markup: ($35 / $45) × 100 = 77.78%
- Verify: A 77.78% markup on a $45 cost = $45 × 1.7778 = $80 (correct)
Notice the significant difference: 43.75% margin versus 77.78% markup for the exact same transaction. This is why confusing the two can lead to major pricing errors. If you target a "50% margin" but accidentally apply a 50% markup, you would sell the $45 item for $67.50 instead of $90, severely underpricing it.
Reverse Calculations
You can also solve for the unknown variable. To find the required selling price given cost and target margin: Selling Price = Cost / (1 − Margin / 100). For a $45 cost with a 40% target margin: $45 / (1 − 0.40) = $45 / 0.60 = $75.00. To find the maximum cost given selling price and target margin: Max Cost = Selling Price × (1 − Margin / 100). For a $100 selling price with a 35% margin: $100 × 0.65 = $65.00 maximum cost.
Sources
Disclaimer: This calculator is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making financial decisions.
Last updated: November 3, 2026