Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Margin and VAT Calculator

Selling price for a target gross margin, before and after VAT, from your cost excluding VAT, the margin you want and the VAT rate you charge.

Margin and VAT Calculator

%
%
VAT-inclusive selling price
116
The price a customer pays, VAT included, in the same currency as the cost you entered.
Selling price excluding VAT
100
Model scope
User-rate pricing scenario, not tax or accounting advice; it does not select a jurisdiction/rate, determine registration, exemption, place/time of supply, recoverability, invoice rounding, discounts, withholding, or filing treatment.

Background.

Most pricing mistakes in a small business come from two percentages that sound alike. Margin is profit as a share of the selling price; markup is profit as a share of cost. Add 40% to an item that costs 60 and you charge 84, but your margin is only 28.6%, because the 24 of profit is measured against 84, not 60. To keep 40% of every sale you have to divide the cost by 0.6, which gives 100.

VAT then sits on top of that price, and it is not yours. A VAT-registered seller collects it from the customer, offsets the VAT paid on purchases, and pays the difference over to the tax authority. That is why margin is worked out on prices excluding VAT, and why the cost you enter should also be net of any VAT you can reclaim. Comparing a VAT-inclusive price with a net cost flatters the result: 116 against a cost of 60 looks like 48%, while the real margin is 40%.

The page takes the two steps in order. It finds the net price that delivers your target gross margin, then multiplies by one plus the VAT rate to give the price a customer pays at the till or on the invoice. Both figures appear, so you can quote either.

It is a pricing aid, not tax advice. You supply the VAT rate, and the page takes no view on whether your goods are standard-rated, zero-rated or exempt, whether you must register, or how invoices should be rounded. Gross margin also means price minus the cost you enter, so freight, packaging or card fees only count if you add them to that cost.

What is margin and vat calculator?

Gross margin is the share of the net selling price left after the cost of the goods sold: (price − cost) ÷ price. Setting it as a target and solving for price gives net price = cost ÷ (1 − margin). The VAT-inclusive price is that net price increased by the VAT rate, which is what a final customer actually pays. Because margin is measured against price, it can approach 100% but never reach it, unlike markup, which has no ceiling.

How to use this calculator.

  1. Enter the cost of one unit excluding VAT: the purchase price plus anything else the margin has to cover, such as freight or packaging. If you are VAT-registered, leave out the input VAT you will reclaim.
  2. Enter the gross margin you want as a percentage of the net selling price. It must be above 0 and below 100, since a 100% margin would imply goods that cost nothing.
  3. Enter the VAT rate you charge on this item. The default 16% is Kenya's standard rate; check the rate that applies to your product and country. The field needs a rate above zero, so for zero-rated or exempt goods use the price excluding VAT as your selling price.
  4. Read the price excluding VAT for invoices and margin tracking, and the VAT-inclusive price for shelf labels and consumer quotes. If you round to a price point afterwards, check how far the rounding moves your margin.

The formula.

net price = cost/(1-margin); gross price = net price×(1+VAT)

Two steps. First, net price = cost ÷ (1 − m), where m is the target margin as a decimal. This follows from the definition of margin: if m = (price − cost) ÷ price, then price × (1 − m) = cost. Second, VAT-inclusive price = net price × (1 + v), where v is the VAT rate as a decimal. VAT is charged on the whole net price, profit included, so it raises what the customer pays without changing your margin. The margin step is the sensitive one. Because it divides by (1 − m), each extra point of margin costs more than the last: on a cost of 60, a 30% margin needs a net price of 85.71, 40% needs 100, 60% needs 150 and 80% needs 300. The VAT step is linear by comparison; one more point of VAT adds exactly 1% of the net price to the gross price.

A worked example.

Example

An item costs 60 before VAT, the target margin is 40% and the VAT rate is 16%. Step one: 1 − 0.40 = 0.60, and 60 ÷ 0.60 = 100, the selling price excluding VAT. Of that, 60 covers the cost and 40 is gross profit, exactly 40% of 100. Step two: 100 × 1.16 = 116, the price the customer pays, of which 16 is VAT to be passed on. Pricing by markup instead would have given 60 plus 40% = 84, or 97.44 with VAT, for a margin of only 28.6%. Reading margin off the VAT-inclusive price goes wrong the other way: (116 − 60) ÷ 116 suggests 48.3%, but 16 of that gap is tax.

vat Rate Percent16
cost Excluding Vat60
target Margin Percent40

Frequently asked questions.

Why isn't a 40% margin the same as adding 40% to my cost?
Adding 40% to cost is a 40% markup, and markup measures profit against cost while margin measures it against price. On a cost of 60, a 40% markup gives 84 and a margin of 28.6%. Hitting a 40% margin needs a markup of 66.7%; in general, markup = margin ÷ (1 − margin).
Should margin be worked out on the price with VAT or without it?
Without. For a registered seller the VAT is collected for the tax authority, so it never becomes profit. Measuring against the VAT-inclusive price overstates the margin: 116 less a cost of 60, divided by 116, suggests 48.3% when the business actually keeps 40%.
How do I take the VAT back out of a VAT-inclusive price?
Divide by one plus the rate. At 16%, 116 ÷ 1.16 = 100, so the VAT inside the price is 16. Multiplying 116 by 16% gives 18.56 instead, which is wrong because it charges VAT on the VAT already included.
What does a 10% discount do to my margin?
More than you might expect. Taking 10% off the 116 price gives 104.40 to the customer and 90 excluding VAT. The cost is still 60, so gross profit falls from 40 to 30 and the margin from 40% to 33.3%. A tenth off the price removed a quarter of the profit.
If I round the shelf price up to 119, what margin do I actually make?
Strip out the VAT first: 119 ÷ 1.16 = 102.59 excluding VAT. Against the cost of 60 that leaves 42.59, a margin of 41.5%. Rounding down to 99 instead would leave 85.34 excluding VAT and a margin of about 29.7%, so check rounding before printing labels.
I'm not registered for VAT. Does this still apply to me?
Partly. A seller who is not registered does not add VAT to sales and normally cannot reclaim the VAT paid on stock, so that VAT is part of your cost. Enter the full amount you paid as the cost, use the price excluding VAT as your selling price, and ignore the VAT-inclusive figure.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
net price = cost/(1-margin); gross price = net price×(1+VAT)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon