CalcBase – Business Calculators

Margin Calculator

Gross profit margin is the percentage of revenue that remains after subtracting the direct cost of a product or service. It is one of the most fundamental metrics in business finance, used to assess how efficiently a business turns sales into profit. A higher margin means more of each sale contributes to overheads and net income. Tracking margin consistently is essential for pricing decisions, product mix analysis, and evaluating whether a business is becoming more or less profitable over time.

To use this calculator, enter your revenue (the selling price) and your cost (what it costs to produce or deliver). The calculator shows the profit amount and the margin percentage using the standard formula: margin = (revenue minus cost) divided by revenue, then multiplied by 100. This formula makes margin a percentage of revenue — which is why margin is always a smaller number than markup for the same transaction, since markup uses cost as its base. A product costing £60 and selling for £100 has a 40% margin but a 66.7% markup.

Margin analysis is useful across many practical contexts: evaluating the profitability of individual products, comparing performance across a product range, setting minimum acceptable prices, or modelling the impact of cost increases or discounts. If a supplier raises prices by 10%, you can use this calculator to instantly see how it affects your margin — and what selling price adjustment you need to restore it. For converting between margin and markup, use the Margin to Markup Converter.

Formula

Profit = Revenue − Cost
Margin % = (Profit ÷ Revenue) × 100

Profit margin is the percentage of revenue that remains as profit after costs. It is calculated by dividing profit by revenue, not by cost. This is the key difference between margin and markup.

Worked Examples

40% margin on a $100 product

A product that sells for $100 and costs $60 to produce.

Revenue
$100
Cost
$60

Profit = $40. Margin = 40%.

Margin on a service contract

A £5,000 consulting project with £3,250 in costs.

Revenue
£5,000
Cost
£3,250

Profit = £1,750. Margin = 35%.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a percentage of revenue (selling price). Markup is profit as a percentage of cost. A 50% markup on a £100 cost gives a £150 selling price, but the margin is only 33.3% — not 50%. Confusing the two leads to systematic pricing errors. Use the Margin to Markup Converter to translate between them accurately.

What is a good profit margin?

This varies widely by industry. Software and SaaS businesses typically achieve gross margins of 70–90%. Retail margins are often 20–50%. Restaurants typically see 60–70% on food costs but lower when labour is included. Manufacturing businesses may see 25–40%. Always compare your margin against industry-specific benchmarks rather than a universal target.

Can margin be negative?

Yes. A negative margin means you are selling below cost — your revenue does not cover the direct cost of the product or service. This indicates a loss on each sale. While some businesses sustain negative margins temporarily (e.g. during a promotion or market entry phase), a persistently negative margin is unsustainable.

How do I convert margin to markup (and vice versa)?

Margin to markup: Markup = Margin ÷ (1 − Margin). For example, a 25% margin equals a 33.3% markup. Markup to margin: Margin = Markup ÷ (1 + Markup). A 50% markup equals a 33.3% margin. They are always different numbers for the same transaction. The Margin to Markup Converter handles this automatically.

What margin do I need to cover a discount?

Your maximum safe discount is roughly equal to your margin percentage — beyond that, you are selling at a loss. But maintaining the same total profit after a discount requires a disproportionate increase in volume. A 20% discount on a product with a 40% margin requires roughly 100% more unit sales just to break even on total profit. See the Discount Impact on Margin guide for a full analysis.

Related Calculators

Learn More

Margin vs Markup: The Difference That Costs Businesses Money

Margin and markup both describe profit, but they are calculated differently. Confusing them leads to pricing errors. This guide clears it up with formulas, a conversion table, and examples.

How to Calculate Discount: Percentages, Stacking, and Reverse Calculations

Learn how percentage discounts work, how to calculate the final price, and why stacking discounts does not mean adding them together. Includes formulas for finding original prices.

Break-even Formula Explained: Fixed Costs, Variable Costs, and the Math

Understand the break-even formula, what contribution margin means, and how to find the exact point where your business starts making profit. Includes worked examples for retail and SaaS.

How to Price a Product: Formulas, Strategies, and Common Mistakes

Pricing determines profitability. This guide covers cost-plus pricing, margin-based pricing, competitive pricing, and the formulas behind each approach.

Pricing Strategy Explained: From Cost-Plus to Value-Based Pricing

Choose the right pricing strategy for your business. This guide covers cost-plus, value-based, competitive, penetration, and premium pricing with real-world examples and the math behind each.

How Discounts Destroy Your Margin (And How Much More You Need to Sell)

A discount reduces your margin by more than you think. This guide shows the real math: how discounts shrink profit, the formula for required sales volume increase, and a reference table for every margin and discount combination.

All calculations are for informational purposes only. They should not replace professional financial, tax, or legal advice. Always consult a qualified professional for decisions affecting your finances or business.