Margin & VAT Calculator

Retail prices usually already include VAT, while your costs do not - a margin computed straight from the listed price looks bigger than it really is. This calculator extracts the tax first, then computes the true margin.

Educational note: this calculator is for learning and estimation, not tax or financial advice. Indonesia's VAT rate is 12% since 1 January 2025 - check the latest rules before using it for business decisions.

Result - True margin

Cost
-
Listed price (inc-VAT)
-
VAT included (12%)
-
Ex-VAT price
-
Margin (Rp)
-
True margin
-

    Not tax advice: results are computed from the numbers you enter using standard formulas. Tax rates are set by the authorities and can change - always check the latest rules before making decisions.

    Why VAT Distorts Your Margin

    Margin is profit divided by selling price: (price - cost) / price. The trap is that shelf prices usually include VAT while your costs exclude it, so the formula compares unlike quantities. VAT is money you hold for the government, not revenue, so it must be stripped out first.

    Worked example: the 8-point illusion
    Cost Rp100,000, shelf price Rp150,000 including 12% VAT.
    Ex-VAT price = 150,000 / 1.12 = Rp133,928.57
    True margin = (133,928.57 - 100,000) / 133,928.57 = 25.33%
    Naive margin (wrong) = (150,000 - 100,000) / 150,000 = 33.33%
    Using the tax-inclusive price overstates margin by 8.00 percentage points.

    Formula Reference

    OperationFormulaWorked example (12% VAT)
    Strip VATexVAT = incl / (1 + r/100)150,000 / 1.12 = Rp133,928.57
    VAT amountVAT = incl - exVAT150,000 - 133,928.57 = Rp16,071.43
    True margin(exVAT - cost) / exVAT(133,928.57 - 100,000) / 133,928.57 = 25.33%
    Target priceexVAT = cost / (1 - target)
    incl = exVAT x (1 + r/100)
    Cost 100,000, target 25%:
    100,000 / 0.75 = Rp133,333.33 ex-VAT
    x 1.12 = Rp149,333.33 incl-VAT
    Markup(price - cost) / cost(133,928.57 - 100,000) / 100,000 = 33.93%

    Key warning: the VAT inside Rp150,000 is Rp16,071.43, not 12% of Rp150,000 (= Rp18,000). The rate applies to the ex-VAT price, never to the tax-inclusive price.

    Margin vs Markup

    Margin divides profit by the selling price; markup divides profit by the cost. They describe the same profit differently, and converting between them is a common exam and business question.

    25% margin25% markup
    BaseSelling priceCost
    Price on Rp100 cost100 / 0.75 = Rp133.33100 x 1.25 = Rp125.00
    Converts to33.33% markup20.00% margin
    Can exceed 100%?No (profit cannot exceed price)Yes (profit can exceed cost)
    Conversions
    markup = margin / (1 - margin): 0.25 / 0.75 = 33.33%
    margin = markup / (1 + markup): 0.25 / 1.25 = 20.00%

    Common Mistakes

    • Mixing ex-VAT cost with inc-VAT price in one margin formula: the single most common error, inflating margin.
    • Computing VAT as rate x inclusive price: always divide by (1 + rate/100) instead.
    • Quoting markup when the buyer expects margin: agree on the definition before negotiating.
    • Forgetting the solver direction: to hit a target margin, divide cost by (1 - target), do not add target percent to cost.

    Frequently Asked Questions About Margin and VAT

    Why does VAT change the margin you see?

    Margin is computed from the selling price: (selling price - cost) / selling price. The problem is that listed retail prices usually already include VAT, while your costs exclude tax, so the formula compares unlike quantities. Example: cost Rp100,000, price Rp150,000 including 12% VAT. The ex-VAT price = Rp150,000 / 1.12 = Rp133,928.57, so the true margin = (Rp133,928.57 - Rp100,000) / Rp133,928.57 = 25.33%. If you wrongly use the inc-VAT price, the margin looks like (Rp150,000 - Rp100,000) / Rp150,000 = 33.33%: it looks 8.00 points bigger. VAT is money held for the government, not your revenue, so it must be removed first before computing margin.

    How do you strip VAT out of a tax-inclusive price?

    The formula is: ex-VAT price = inc-VAT price / (1 + rate / 100), then VAT = inc-VAT price - ex-VAT price. Example at a 12% rate: Rp150,000 / 1.12 = Rp133,928.57, so the included VAT = Rp150,000 - Rp133,928.57 = Rp16,071.43. Note: the VAT is not 12% of the inc-VAT price (Rp18,000); that is wrong, because the rate applies to the ex-VAT price, not to the tax-inclusive price.

    When should I use the ex-VAT price and when the inc-VAT price?

    Use the ex-VAT price for margin and profit analysis: costs and selling prices must both exclude tax to be comparable. Use the inc-VAT price for what consumers pay: shelf prices, receipts, and the checkout. Mixing the two in one margin formula is the most common mistake: comparing an ex-VAT cost against an inc-VAT price makes the margin look bigger than it really is.

    How is this calculator different from a gross margin calculator?

    A gross margin calculator computes the pure margin from sales and COGS without a VAT correction: the right choice when your selling price is genuinely ex-VAT. This calculator adds one layer: it extracts VAT from the inc-VAT price first, then computes the true margin. If your price excludes tax, use a gross margin calculator; if the listed price includes tax, use this calculator.

    How is this calculator different from a GST calculator?

    A GST calculator handles the tax itself: adding or removing GST from a price and splitting it into CGST, SGST, or IGST components. This calculator handles business margin when the selling price already includes tax: the question is not 'how much is the tax' but 'what is my true margin after the tax is removed'. They complement each other: GST for tax matters, this calculator for margin matters.

    What is Indonesia's current VAT rate?

    Indonesia's VAT rate is 12% since 1 January 2025 under the HPP Law. Previously it was 10% until 31 March 2022, then 11% from 1 April 2022 until 31 December 2024. Rates can change and may differ for certain goods or services, so check the latest rules before using them for business decisions. This calculator accepts any rate from 0% to 100%, so it stays useful even if the rate changes.

    How do I set a selling price to hit a target margin?

    Use Solver mode: minimum ex-VAT price = cost / (1 - target margin), then inc-VAT price = ex-VAT price x (1 + rate). Example: cost Rp100,000, target margin 25%, 12% VAT: ex-VAT price = Rp100,000 / 0.75 = Rp133,333.33, so the inc-VAT selling price = Rp133,333.33 x 1.12 = Rp149,333.33. Solver mode can also work backward: the maximum VAT rate that still lets you hit the target margin at a given inc-VAT price.

    What is the difference between margin and markup?

    Margin = (price - cost) / price: profit as a share of the selling price. Markup = (price - cost) / cost: profit as a share of the cost. On a Rp100 cost sold at Rp133.33 ex-VAT, the margin is 25% but the markup is 33.33%. Convert with: markup = margin / (1 - margin); margin = markup / (1 + markup).

    How do I convert between markup and margin?

    Use markup = margin / (1 - margin). A 25% margin converts to 0.25 / 0.75 = 33.33% markup. The reverse: margin = markup / (1 + markup), so 25% markup = 0.25 / 1.25 = 20% margin. Margin can never exceed 100%, but markup can.

    What is a good profit margin?

    It varies enormously by industry: grocery retail runs 1-3% net margins, restaurants 3-9%, and software 70%+ gross margins. Compare against your own industry's benchmarks, not a universal number. What matters is whether the margin covers your operating costs and leaves the return you need.

    Should margin be calculated before or after tax?

    Always after removing tax. Compute margin on ex-VAT prices for both cost and selling price so the ratio reflects your economics, not the tax collector's. Consumer-facing price lists show inc-VAT prices, but every internal margin report should use ex-VAT figures.

    What is the difference between gross margin and net margin?

    Gross margin = (revenue - cost of goods sold) / revenue: production profitability only. Net margin = net profit / revenue: after operating expenses, interest, and taxes. This calculator's 'true margin' is a gross-margin concept with the VAT layer stripped out; subtract your operating costs to approach net margin.

    How does a discount affect my true margin?

    Apply the discount to the inc-VAT shelf price first, then strip VAT from the discounted price before computing margin. Example: Rp150,000 with 10% off = Rp135,000; ex-VAT = 135,000 / 1.12 = Rp120,535.71; margin on Rp100,000 cost = (120,535.71 - 100,000) / 120,535.71 = 17.04%. Discounts eat margin fast: verify with the calculator.

    My supplier quotes ex-VAT but I sell inc-VAT. How do I compare?

    Convert both to the same basis before comparing: strip VAT from your selling price (divide by 1 + rate/100) and compare directly against the ex-VAT supplier quote. Never compare an ex-VAT cost against an inc-VAT price; the margin will look better than it is by roughly the VAT rate.

    Can profit margin exceed 100%?

    No. Margin = profit / selling price, and profit can never exceed the selling price itself, so margin tops out just under 100%. Markup = profit / cost has no such ceiling: selling at triple the cost is a 200% markup. If someone quotes a '150% margin', they mean markup.

    Related Margin and Tax Calculators

    Disclaimer: this page is educational. For actual tax matters, consult an accountant or tax consultant familiar with the applicable regulations.

    Free tool by NRTechStudio