Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Margin and VAT Calculator

Cost per item, before tax, in dollars: enter 0 or more. Prefilled example: 60.

Target gross margin (% of the price before tax): enter a number from 0 to 99.99. Prefilled example: 40.

VAT or sales tax rate, in percent: enter a number from 0 to 100. Prefilled example: 20.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Cost per item, before tax, in dollars: enter 0 or more.
  2. Target gross margin (% of the price before tax): enter a number from 0 to 99.99.
  3. VAT or sales tax rate, in percent: enter a number from 0 to 100.
  4. 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

  1. Net=c1−m÷100
  2. Tax=Net×v100
  3. G=Net+Tax
Symbols used in the formula
SymbolMeaningUnit
cCost per item, before tax$
mTarget gross margin (% of the price before tax)
vVAT or sales tax rate%
NetSelling price before tax$
TaxVAT or sales tax$
GPrice including tax$

Worked example

Cost per item, before tax$60
Target gross margin (% of the price before tax)40
VAT or sales tax rate20%
Selling price before tax ($)$100.00
Gross profit per item ($)$40.00
Markup on cost66.67%
VAT or sales tax ($)$20.00
  1. Net=601−40÷100=100
  2. Tax=100×20100=20
  3. G=100+20=120

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.

Related calculators