Markup vs Margin Calculator: Set Profitable Prices Without Confusion
Markup and gross margin both describe profitability, but they use different bases and can produce very different prices. This guide explains the difference, provides repeatable formulas and worked examples, and shows how to build an Excel-ready markup vs margin calculator for products, services and projects.
Overview
Markup is the amount added to cost to reach a selling price. Gross margin is the proportion of the selling price that remains after direct cost is deducted. The distinction matters because a percentage applied to cost is not equivalent to the same percentage measured against revenue.
For example, applying a 30% markup to a £100 cost produces a £130 selling price. The gross margin is not 30%; it is £30 divided by £130, or approximately 23.1%. Conversely, a target gross margin of 30% requires a higher selling price than a 30% markup.
A markup vs margin calculator is useful when setting prices, checking quotes, reviewing product profitability or comparing different pricing options. It should make the relationship between cost, selling price, markup and margin visible rather than hiding the calculation behind a single output.
Use the calculator with a consistent definition of cost. A product business may use purchase cost and inbound delivery, while a service business may use direct labour, subcontractor charges and project-specific materials. Overhead recovery, discounts, taxes and payment fees may need separate lines depending on the decision being made.
How to estimate markup and margin
Start with two core inputs:
- Cost: the direct cost assigned to one unit, job or sale.
- Selling price: the amount charged before or after VAT, depending on the basis selected.
Once these values are available, use the following formulas:
- Profit: Selling price − Cost
- Markup percentage: Profit ÷ Cost × 100
- Gross margin percentage: Profit ÷ Selling price × 100
To calculate a selling price from a target markup:
Selling price = Cost × (1 + Markup percentage)
Enter the percentage as a decimal in a spreadsheet. For example, 25% is entered as 0.25, so a £100 cost with a 25% markup gives a £125 price.
To calculate a selling price from a target gross margin:
Selling price = Cost ÷ (1 − Target margin percentage)
A £100 cost with a 25% target gross margin therefore requires a price of £133.33, before any applicable VAT. The resulting profit is £33.33, and £33.33 divided by £133.33 equals 25%.
These formulas are suitable for a simple profit margin calculator, markup calculator or project pricing calculator. In Excel, a practical layout might use columns for Item, Direct Cost, Target Markup, Markup Price, Target Margin, Margin Price, Selected Price and Gross Profit. Example formulas, assuming cost is in B2, markup in C2 and margin in E2, are:
=B2*(1+C2)for the markup-based price.=B2/(1-E2)for the margin-based price.=G2-B2for profit when the selected price is in G2.=(G2-B2)/G2for the resulting gross margin.
Format percentage inputs as percentages and add a check that prevents a target margin of 100% or more, because the margin formula would divide by zero or produce an unusable result.
Inputs and assumptions
The quality of the result depends more on the inputs than on the arithmetic. Before using a gross margin calculator, decide what the calculation is intended to support.
Define direct cost
For a physical product, direct cost may include the supplier price, packaging and delivery directly attributable to the item. For a service, it may include billable staff time, contractors, materials and travel that would not arise without the engagement. If overheads are material, show them separately or allocate them using a documented method rather than quietly mixing them into some quotes but not others.
Choose a tax basis
Calculate margin using net figures when VAT is collected on behalf of the tax authority and is not part of the business’s revenue. If you are comparing a customer-facing, VAT-inclusive price, calculate the VAT-inclusive amount separately and label it clearly. Enter the applicable VAT rate as an input rather than hard-coding a rate that may change or may not apply to every item.
For a VAT-inclusive calculator, the basic relationship is:
VAT-inclusive price = Net price × (1 + VAT rate)
Keep the net selling price, VAT amount and customer-facing total in separate cells. This makes invoice checks easier and avoids treating VAT as profit. For a fuller spreadsheet structure, see the VAT Calculator in Excel for UK Businesses.
Account for discounts and fees
If customers commonly receive discounts, test the price after the expected discount rather than only the list price. Payment processing fees, marketplace commissions, shipping subsidies and sales commissions may also reduce the amount retained. Add these as separate deductions when they are relevant to the decision.
Do not confuse gross margin with net profit margin. Gross margin normally focuses on revenue less directly attributable costs. Rent, administration, software, marketing, financing and tax may still need to be paid from the remaining amount.
Worked examples
Example 1: markup-based pricing
A business buys an item for £80 and applies a 40% markup.
- Markup profit: £80 × 40% = £32
- Selling price: £80 + £32 = £112
- Gross margin: £32 ÷ £112 = approximately 28.6%
The 40% markup does not create a 40% gross margin. This is the most common source of confusion when comparing supplier pricing rules with management targets.
Example 2: margin-based pricing
The same £80 direct cost must achieve a 40% gross margin.
- Selling price: £80 ÷ (1 − 40%) = approximately £133.33
- Gross profit: £133.33 − £80 = approximately £53.33
- Gross margin: £53.33 ÷ £133.33 = 40%
The margin target requires a price of about £133.33, which is equivalent to a markup of approximately 66.7% on cost. Use this reverse calculation when a business has a fixed margin policy but suppliers or sales staff think in markups.
Example 3: a project quote
A project has £1,200 of direct labour and £300 of materials, giving a direct cost of £1,500. A 30% target gross margin produces:
£1,500 ÷ (1 − 0.30) = approximately £2,142.86
If the quote is discounted by 10%, the customer pays approximately £1,928.57. The resulting gross margin falls to about 22.2% before any additional project costs. A useful project pricing calculator should therefore show list price, discount, final price, direct cost and resulting margin together.
For broader planning, connect pricing assumptions to a break-even analysis in Excel and test volume as well as price. A strong unit margin may not be sufficient if sales volume, capacity or fixed costs are unrealistic.
When to recalculate
Revisit the calculator whenever a pricing input changes. This includes supplier costs, wages, subcontractor rates, packaging, delivery, exchange rates, payment fees, discounts or the target margin itself. Recalculate before approving a new price list, renewing a contract, accepting a large discount or changing the scope of a project.
Review the model at regular management checkpoints as well. Compare estimated direct costs with actual costs and investigate products or projects where the realised margin differs from the quoted margin. A sales dashboard template can help track revenue and targets, but the pricing sheet should retain the cost assumptions behind those results.
For scenario testing, create base, cautious and favourable cases for cost, price, discount and volume. The Excel scenario planning template approach is useful when a single forecast would conceal uncertainty. Keep a dated copy of approved assumptions and record whether each figure is net or VAT-inclusive.
As a final check, ask three questions: Is the cost definition consistent? Is the target expressed as markup or margin? Does the final price still work after discounts, VAT treatment and variable fees? If the answer to all three is clear, the calculator becomes a repeatable decision tool rather than a one-off pricing exercise.