Solved.tools: Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

Margin Calculator

Last updated: 27 June 2026

Reviewed by Gavin Meiring, Lead research and primary author · Doctoral Candidate (Corporate Governance) · Research and drafting assisted by AI

Was this helpful?


Margin Calculator

A margin calculator works out gross profit margin, net profit margin, or markup percentage from cost and selling price inputs. It is used by business owners, retailers, and freelancers who need to price products correctly, compare margins across product lines, or understand the relationship between cost, price, and profit.

How to Use the Margin Calculator

  1. Enter the cost price of the product or service (the amount you pay to produce or acquire it).
  2. Enter the selling price (the amount you charge the customer).
  3. Click calculate to see the gross profit, gross margin percentage, and markup percentage.
  4. Alternatively, enter a desired margin percentage and cost to calculate the required selling price.

The Formula

Gross Profit = Selling Price - Cost Price

Gross Margin (%) = (Gross Profit / Selling Price) x 100

Markup (%) = (Gross Profit / Cost Price) x 100

To find the selling price from a target margin:

Selling Price = Cost Price / (1 - Target Margin as decimal)

To find the selling price from a target markup:

Selling Price = Cost Price x (1 + Markup as decimal)

Real-World Example

You buy a product for £40 and sell it for £65.

  • Gross profit: £65 - £40 = £25
  • Gross margin: (£25 / £65) x 100 = 38.5%
  • Markup: (£25 / £40) x 100 = 62.5%

Now set the target: you want a 40% margin on a product that costs you £40. What should the selling price be?

  • Selling price: £40 / (1 - 0.40) = £40 / 0.60 = £66.67

A common error is using margin and markup interchangeably. A 40% markup on a £40 cost gives a price of £56, which is only a 28.6% margin. The difference matters significantly when setting prices or reviewing profitability.

Margin Versus Markup: Why the Distinction Matters

Margin and markup both describe the relationship between cost and selling price but from different reference points. Margin is calculated against the selling price; markup is calculated against the cost. This means that a 50% markup does not produce a 50% margin. In fact, a 50% markup produces a 33.3% margin. Confusing the two leads to systematic underpricing. When a business owner says they want a "50% margin", a supplier might interpret it as a 50% markup and price accordingly, resulting in products sold at a margin of only 33.3%. Always specify which metric you mean when discussing pricing with partners, buyers, or your accounting software.

Frequently Asked Questions

What is a good profit margin for a retail business? Retail margins vary significantly by sector. Grocery retail typically runs on net margins of 1 to 3%. Fashion retail operates at gross margins of 50 to 60% but net margins of 5 to 10% after overheads. Software businesses can achieve gross margins above 70%. The gross margin needs to be high enough to cover your operating costs and still leave a net profit. Compare your margin against industry benchmarks for your specific sector.

How do I include overhead costs in my margin calculation? The gross margin calculation uses only direct cost of goods sold. To account for overheads such as rent, staff, and utilities, you need the net margin: net profit divided by revenue. When pricing products, add a percentage to cover overhead contribution in addition to your gross margin target. For example, if overheads consume 20% of revenue and you want a 10% net profit, your gross margin needs to be at least 30%.

What is the difference between gross margin and net margin? Gross margin accounts only for the direct cost of the product or service (materials, manufacturing, or purchase cost). Net margin accounts for all costs including overheads, interest, and tax. A business with a 60% gross margin but 55% overhead costs has a net margin of only 5%. Use gross margin to evaluate product pricing; use net margin to evaluate overall business profitability.

How does VAT affect my margin calculation? If your selling price includes VAT, remove the VAT before calculating margin. A £120 price including 20% VAT has a net price of £100. Your margin is calculated on the £100, not £120. Forgetting to strip VAT from revenue inflates your apparent margin and understates the true position.


Understanding the Margin Calculator

The Margin Calculator is one of the most-requested tools in the margin category because it condenses a calculation that would otherwise require manual work, a spreadsheet, or a specialist program into a single input-and-output step. whether you are a student, a professional, or a curious learner, the Margin Calculator is designed to deliver a quick and trustworthy answer without forcing you to install anything or sign up for an account. Behind the scenes, the Margin Calculator applies well-established mathematical or scientific formulas to the values you provide. the aim of Margin Calculator is to remove the friction of hand calculation while still showing you the underlying method, so you can confidently interpret the result. Every calculation is performed locally in your browser, which means your inputs never leave your device.

When Should You Use the Margin Calculator?

Use the Margin Calculator whenever you need a quick, reliable answer that fits the tool's scope. Common situations for the Margin Calculator include homework problems, workplace tasks, financial planning, fitness or health tracking, and everyday curiosity. If the Margin Calculator answer will be used for a decision that has legal, medical, or financial consequences, treat the result as a starting point and verify it with a qualified professional. The Margin Calculator is free to use, requires no sign-up, and works on any device with a modern browser. You can run the Margin Calculator as many times as you like, change the inputs, and compare results side by side.

Common Inputs and How to Choose Them

Most Margin Calculator problems revolve around a small set of inputs.

  • the cost price of the product or service (the amount you pay to produce or acquire it) is usually the first value to pin down for the Margin Calculator.
  • the selling price (the amount you charge the customer) sets the context the Margin Calculator needs for a sensible result.
  • calculate to see the gross profit, gross margin percentage, and markup percentage refines the Margin Calculator output where the data is available. Identifying the right values is the most important step for the Margin Calculator, because the answer is only as accurate as the data you put in. If a value is unknown, prefer a conservative estimate over a guess when using the Margin Calculator.

How to Interpret the Result

The numerical answer from the Margin Calculator alone is rarely the whole story. Read the units, the precision, and any warnings shown alongside the Margin Calculator result. Understanding the path from inputs to output in the Margin Calculator makes it easier to spot errors, communicate the result to others, and reuse the method for related problems in the future.

Worked Examples

A typical Margin Calculator run takes reasonable inputs, produces a sensible answer, and returns it in a single click. Example: You buy a product for £40 and sell it for £65. - Gross profit: £65 - £40 = £25 - Gross margin: (£25 / £65) x 100 = 38.5% - Markup: (£25 / £40) x 100 = 62.5% Now set the target: you want a 40% margin on a product that costs you £40. What should the selling price be? - Selling price: £40 / (1 - 0.40) = £40 / 0.60 = £66.67 A common error is using margin and markup interchangeably. A 40% markup on a £

Common Mistakes to Avoid

Common mistakes with the Margin Calculator:

  • Mixing up units (for example, entering one unit when the Margin Calculator expects another).
  • Forgetting to convert percentages to decimals or vice versa where the Margin Calculator formula requires it.
  • Using a snapshot value that no longer reflects reality for the Margin Calculator, especially for time-sensitive inputs like prices, rates, or counts.
  • Rounding intermediate steps too early and then carrying the rounded value forward in the Margin Calculator.
  • Treating the Margin Calculator as a substitute for professional advice when the decision is high-stakes.

Limitations and Assumptions

No calculator is a perfect model of reality, and the Margin Calculator is no exception. The Margin Calculator makes simplifying assumptions to keep the math tractable: it ignores rare cases, applies default values where inputs are missing, and uses formulas that suit the typical situation rather than the exotic one. When your situation falls outside the typical case, the Margin Calculator result may drift further from the truth. If you need a more precise answer than the Margin Calculator provides, the next step is usually a specialist, a more detailed reference, or a domain-specific tool.

For more depth on the Margin Calculator topic, consult textbooks, academic papers, or reputable online resources. Reputable sources for the Margin Calculator include government statistics agencies, university extension services, and peer-reviewed journals. Wikipedia is a useful starting point for definitions and formulas behind the Margin Calculator, but always follow the citations to the original source before relying on a number. If you find that you need the same Margin Calculator calculation repeatedly, consider writing down the inputs and the result in a note so you can build a personal record over time.

Quick Reference

  • Free to use: yes, no sign-up required.
  • Privacy: all calculations run locally in your browser.
  • Units: metric and imperial supported where applicable; check the input labels.
  • Speed: instant, no page reload.
  • Mobile friendly: yes, works on phones and tablets.
  • Offline: once the page has loaded, the calculation continues to work without a network connection.

References - General-purpose math references such as Wolfram MathWorld and Khan Academy for foundational formulas.

  • Wikipedia articles on the relevant topic, with citations to primary sources, cover the Margin Calculator background.
  • Peer-reviewed journals and textbooks give the most rigorous treatments of the Margin Calculator method.Tools/tools/calculator) - Percentage Calculator - Unit Converter

Also try these free tools: