Skip to main content
HS Calculadora
Finance

Profit Margin & Markup Calculator

Margin and markup from cost and price, or the selling price for a target margin or markup.

Quick answer

Margin and markup from cost and price, or the selling price for a target margin or markup. Formula: If you enter a selling price, the profit is price minus cost, the margin is profit divided by price and the markup is profit divided by cost.

Cost: 60 €, Selling price (before VAT): 100 €, VAT: 21 % → Profit margin: 40%.

€
€

Fill this to get margin and markup…

%

…or this to get the price for that margin

%

…or this to get the price for that markup

%

Results update as you type.

Profit margin
—
Selling price (before VAT)—
Markup—
Profit per unit—
Price with VAT—

This calculator is for illustrative purposes only. Actual rates, fees and terms vary by lender. Consult a qualified financial adviser before making borrowing decisions.

How it works

Margin and markup both describe the profit in a price, but they measure it against different bases, and mixing them up is one of the most expensive pricing mistakes a shop or freelancer can make. This calculator works in three directions. Enter a cost and a selling price to see the profit, the margin and the markup. Enter a cost and the margin you want to find the selling price that delivers it. Or enter a cost and a markup to find the price that markup gives. Margin is profit as a share of the selling price: if you sell for 100 and it cost you 60, the profit of 40 is a 40% margin. Markup is profit as a share of the cost: the same 40 is a 66.7% markup on the 60 you paid. Markup is therefore always the bigger number for the same price, and that is exactly where the trap is. A shop that wants a 40% margin but applies a 40% markup on cost sells at 84 instead of 100 and ends up with a margin of only 28.6%. To price for a target margin, divide the cost by one minus the margin, so 60 ÷ (1 − 0.40) = 100. To price for a markup, multiply the cost by one plus the markup, so 60 × 1.50 = 90, which is a 33.3% margin. The calculator also adds VAT to give the final shelf price, 21% by default, which you can change for reduced rates. All prices are before VAT unless stated, because margin is always calculated on the price you actually keep.

Formula

Margin = (price − cost) ÷ price · Markup = (price − cost) ÷ cost · Price for a margin = cost ÷ (1 − margin) · Price for a markup = cost × (1 + markup)

If you enter a selling price, the profit is price minus cost, the margin is profit divided by price and the markup is profit divided by cost. If you leave the price empty and enter a target margin, the price is cost divided by one minus the margin; with a target markup instead, it is cost times one plus the markup. The price with VAT multiplies the price before VAT by one plus the VAT rate.

Source:Standard pricing and gross-margin formulas

We review all our tools from time to time to ensure accuracy.

Worked example

Cost:60Selling price (before VAT):100VAT:21
Bought at €60 and sold at €100 before VAT: €40 profit, a 40% margin and a 66.67% markup; with 21% VAT the shelf price is €121. For a 40% margin on the same €60 cost, the price is €100; a 50% markup gives €90, only a 33.33% margin.

How to use this calculator

  1. 1

    Enter your values

    Enter cost.

  2. 2

    Adjust the options

    Adjust selling price (before vat), …or target margin, …or target markup and vat if they apply — sensible defaults are already set.

  3. 3

    Read your result

    Profit margin updates instantly as you type — no button to press.

Frequently asked questions

What is the difference between margin and markup?

Both measure the same profit against a different base. Margin divides the profit by the selling price, markup divides it by the cost. Selling at 100 something that cost 60 gives a profit of 40, which is a 40% margin but a 66.7% markup. Margin can never reach 100%, while markup has no upper limit, which is why markup always looks bigger for the same price.

How do I set a price to get a specific margin?

Divide the cost by one minus the target margin expressed as a decimal. For a 40% margin on a cost of 60, the price is 60 divided by 0.60, which is 100. Leave the selling price empty and type your target margin to get it instantly. Do not simply add the margin percentage to the cost: 60 plus 40% is 84, a margin of just 28.6%.

Should margin be calculated with or without VAT?

Without VAT. VAT is collected for the tax agency and paid on, so it is not part of your income or your profit. Calculate margin and markup on the price before VAT, then add VAT at the end to get the shelf price shown to customers. The calculator does exactly that and shows the price with VAT separately, 21% by default, editable for the reduced 10% or 4% rates.

What is a good profit margin?

It depends heavily on the sector. Supermarkets work with net margins of a few per cent and gross margins around 25%, fashion retail often aims for gross margins of 50 to 60%, and services and software can exceed 70%. More useful than a general benchmark is to check that your gross margin covers all fixed costs, such as rent, salaries and marketing, and still leaves a profit.

Which costs should I include in the cost price?

For the gross margin of a product, include everything it takes to have that unit ready to sell: purchase price, transport, customs, packaging and payment or platform fees. Fixed costs such as rent or salaries are usually left out here and covered by the total gross margin. If you include them per unit, you are calculating something closer to net margin, so compare like with like.

More Finance calculators

Finance

Markup Calculator

Set a selling price from cost and markup.

Business

Markup to Margin Calculator

Convert a markup percentage into the equivalent profit margin.

Business

Gross Margin Calculator

Find gross margin and gross profit.

Finance

Break-even Calculator

Find the units you must sell to break even.

E-commerce

E-commerce Profit Calculator

See your true profit and margin per sale.

Everyday Life

Discount Calculator

Calculate the sale price after a percentage or fixed discount. See your savings instantly.