Margin and VAT Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter your cost before tax, the gross margin you want on the selling price and the VAT or sales tax rate.
Result
Price including tax
Gross profit per item ($)
- Selling price before tax ($)
- VAT or sales tax ($)
- Markup on cost
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
| Item | Value |
|---|---|
| Selling price before tax ($) | — |
| Gross profit per item ($) | — |
| Markup on cost | — |
| VAT or sales tax ($) | — |
| Price including tax | — |
Parts are rounded so that they add up to the total shown.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Cost per item, before tax, in dollars: enter 0 or more.
- Target gross margin (% of the price before tax): enter a number from 0 to 99.99.
- VAT or sales tax rate, in percent: enter a number from 0 to 100.
- Read the result: Price including tax; the panel also shows Selling price before tax ($), Gross profit per item ($), Markup on cost and VAT or sales tax ($).
How this calculator works
Price before tax = cost ÷ (1 − margin), because margin is profit as a share of the selling price. Tax = price before tax × tax rate, and the customer pays price before tax + tax.
Margin is always worked out on the price before tax: VAT and sales tax are collected for the government and are not part of your revenue.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Cost per item, before tax | $ | |
| Target gross margin (% of the price before tax) | ||
| VAT or sales tax rate | % | |
| Selling price before tax | $ | |
| VAT or sales tax | $ | |
| Price including tax | $ |
Worked example
| Cost per item, before tax | $60 |
|---|---|
| Target gross margin (% of the price before tax) | 40 |
| VAT or sales tax rate | 20% |
| Selling price before tax ($) | $100.00 |
|---|---|
| Gross profit per item ($) | $40.00 |
| Markup on cost | 66.67% |
| VAT or sales tax ($) | $20.00 |
Price including tax $120.00
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What price gives a 40% margin on a $60 cost?
$60 ÷ 0.60 = $100 before tax, a $40 profit (a 66.67% markup). With 20% VAT the customer pays $120.00.
Is margin the same as markup?
No. Margin divides profit by the price, markup divides it by the cost; a 40% margin is a 66.67% markup.