Friday, May 22, 2026Today's Paper

Omni Apps

How to Get VAT From Total: Reverse Calculations & Formulas
May 22, 2026 · 12 min read

How to Get VAT From Total: Reverse Calculations & Formulas

Need to work out the VAT amount from a gross price? Learn how to get VAT from total using reverse VAT formulas, Excel guides, and developer code examples.

May 22, 2026 · 12 min read
AccountingTaxationExcel Formulas

If you have a gross total price and need to get VAT from total, you cannot simply multiply the total by the VAT rate. This is one of the most common mistakes business owners, freelancers, and junior bookkeepers make. To work out vat amount from an inclusive total, you must use a reverse VAT calculation. This process ensures you isolate the exact tax portion without compounding the gross figure.

In this comprehensive guide, we will break down the mathematical formulas required to subtract vat from total, walk through step-by-step examples for common global rates (such as 20%, 15%, and 5%), and provide ready-to-use formulas for Excel, Google Sheets, and popular programming languages. By the end of this guide, working out vat inclusive amount details will be straightforward and highly accurate.

1. Why You Cannot Simply Multiply the Total (The "Reverse VAT" Trap)

To understand why you need a specific formula to work out vat on total, let's first look at how standard VAT is added.

When a business prices an item, they start with the net amount (the price before tax). They then apply the VAT rate to that net amount to find the tax charge, adding the two together to create the gross total.

  • Net Amount: $100.00
  • VAT Rate: 20%
  • VAT Added: $100.00 \times 0.20 = $20.00
  • Gross Total: $100.00 + $20.00 = $120.00

Now, imagine you only have the Gross Total ($120.00) and you need to work out vat on an amount. If you make the mistake of multiplying the total by the tax rate ($120.00 \times 0.20$), you get $24.00.

This is incorrect. The actual VAT was $20.00. The extra $4.00 is because you calculated 20% on the tax portion as well as the net price—effectively taxing the tax. This common pitfall can result in overpaid taxes, incorrect invoicing, and major headaches during tax audits.

To safely subtract vat from total, you must use a formula that reverses this compounding effect.

2. The Mathematical Formulas to Subtract VAT from Total

To calculate the VAT component of a gross figure, you must strip away the compounding percentage. Let's establish the algebra behind how this works so you can apply it to any VAT or GST rate worldwide.

The Variables

  • Let T = Total Price (Gross, VAT-inclusive amount)
  • Let N = Net Price (VAT-exclusive amount)
  • Let V = VAT Rate (expressed as a decimal, e.g., 0.20 for 20% or 0.05 for 5%)
  • Let A = VAT Amount

Finding the Net Amount First

Because the total is equal to the net price plus the VAT rate multiplied by the net price, we write the equation as:

$$T = N + (N \times V)$$ $$T = N \times (1 + V)$$

To isolate the Net Amount (N), we divide both sides by $(1 + V)$:

$$N = \frac{T}{1 + V}$$

Once you have the Net Amount, finding the VAT Amount (A) is simple subtraction:

$$A = T - N$$

Finding the VAT Amount Directly

If you want to skip finding the Net Amount and calculate the VAT Amount (A) directly from the total, you can combine the equations:

$$A = T \times \left(\frac{V}{1 + V}\right)$$

This is the definitive formula to get vat from total. Let's look at how this formula behaves with standard VAT rates.

3. Step-by-Step Examples with Popular Global Rates

Tax rates vary depending on your jurisdiction and the type of goods or services sold. Below are detailed walkthroughs of how to work out vat from a total using common global rates.

Example A: Standard UK/EU VAT (20%)

To extract 20% VAT from a gross total of $150.00:

  1. Identify the variables: $T = 150$, $V = 0.20$
  2. Calculate the Net Amount: $$N = \frac{150}{1 + 0.20} = \frac{150}{1.20} = 125.00$$
  3. Subtract to find VAT: $$A = 150 - 125 = 25.00$$
  4. Alternative (Direct Method): $$A = 150 \times \left(\frac{0.20}{1.20}\right) = 150 \times \frac{1}{6} = 25.00$$

Using either approach, the VAT amount is $25.00, and the net amount is $125.00.

Example B: Reduced Rate VAT (5%)

Many countries apply a reduced rate (typically 5%) to essential goods, home energy, or select services. Let's extract 5% VAT from a gross total of $84.00:

  1. Identify the variables: $T = 84$, $V = 0.05$
  2. Calculate the Net Amount: $$N = \frac{84}{1 + 0.05} = \frac{84}{1.05} = 80.00$$
  3. Subtract to find VAT: $$A = 84 - 80 = 4.00$$
  4. Alternative (Direct Method): $$A = 84 \times \left(\frac{0.05}{1.05}\right) = 84 \times \frac{1}{21} = 4.00$$

Here, the VAT amount is $4.00, and the net amount is $80.00.

Example C: Standard Australian/NZ GST (10% or 15%)

In Australia, GST is 10%. In New Zealand, GST is 15%. Let's calculate the tax from a gross total of $230.00 for both jurisdictions.

For Australia (10% GST):

  1. Identify variables: $T = 230$, $V = 0.10$
  2. Calculate the Net Amount: $$N = \frac{230}{1.10} = 209.0909... \approx 209.09$$
  3. Calculate the GST Amount: $$A = 230 - 209.09 = 20.91$$
  4. Direct Method: $$A = 230 \times \left(\frac{0.10}{1.10}\right) = 230 \times \frac{1}{11} = 20.9090... \approx 20.91$$

For New Zealand (15% GST):

  1. Identify variables: $T = 230$, $V = 0.15$
  2. Calculate the Net Amount: $$N = \frac{230}{1.15} = 200.00$$
  3. Calculate the GST Amount: $$A = 230 - 200 = 30.00$$
  4. Direct Method: $$A = 230 \times \left(\frac{0.15}{1.15}\right) = 230 \times \frac{3}{23} = 30.00$$

Quick-Reference Multiplier Table

To save time, you can pre-calculate the fraction or decimal multiplier for common VAT rates. Multiply your gross total by the "VAT Multiplier" to get the VAT amount instantly.

VAT Rate (%) Decimal (V) Net Divisor (1 + V) VAT Multiplier (V / (1 + V)) Fractional Equivalent
5% 0.05 1.05 0.047619 1/21
8% 0.08 1.08 0.074074 2/27
10% 0.10 1.10 0.090909 1/11
15% 0.15 1.15 0.130435 3/23
19% 0.19 1.19 0.159664 19/119
20% 0.20 1.20 0.166667 1/6
21% 0.21 1.21 0.173554 21/121
23% 0.23 1.23 0.186992 23/123
25% 0.25 1.25 0.200000 1/5

4. How to Calculate and Subtract VAT in Excel and Google Sheets

If you work with large datasets, calculating VAT manually is impractical. Setting up your spreadsheets correctly ensures you can automate these calculations while avoiding rounding errors.

Scenario 1: Calculating the Net Amount from a Total

If column A contains your VAT-inclusive totals, and column B contains your VAT rate (formatted as a percentage, e.g., 20% or 0.20), use this formula in column C to find the net price:

=A2 / (1 + B2)

If the VAT rate is fixed at 20% and not stored in a separate cell, you can hardcode it:

=A2 / 1.20

Scenario 2: Extracting the VAT Amount directly

To get the actual VAT currency amount without calculating the Net column first, use this formula in column D:

=A2 * (B2 / (1 + B2))

Or with a hardcoded 20% VAT rate:

=A2 * (0.20 / 1.20)

Or simply:

=A2 - (A2 / 1.20)

Scenario 3: Preventing Floating-Point Rounding Issues in Sheets

Because spreadsheets can occasionally introduce tiny floating-point decimals, always wrap your financial calculations in a rounding function. For example, to round your extracted VAT to exactly two decimal places:

=ROUND(A2 * (B2 / (1 + B2)), 2)

5. Developer Guide: Handling Reverse VAT in Code (JS, Python, SQL)

Software engineers developing e-commerce checkouts, SaaS billing engines, or accounting platforms must exercise extreme caution. Traditional floating-point math in computers can lead to calculation drift (e.g., 0.1 + 0.2 equating to 0.30000000000000004). In financial settings, this is unacceptable.

Here is how to calculate reverse VAT correctly in three common programming ecosystems.

JavaScript (Decimal-Safe Method)

In JavaScript, never do pure float operations for currency. Instead, convert your monetary values to cents/pence (integers) before doing the math, or use standard libraries like big.js or decimal.js.

Below is an integer-based approach for a standard 20% VAT rate:

function getVatFromTotalInCents(totalInCents, vatRateAsPercent) {
    // For 20%, vatRateAsPercent is 20
    const rateDivisor = 100 + vatRateAsPercent; 
    
    // Calculate VAT in cents, rounding to the nearest integer
    const vatAmountInCents = Math.round((totalInCents * vatRateAsPercent) / rateDivisor);
    const netAmountInCents = totalInCents - vatAmountInCents;
    
    return {
        total: totalInCents / 100,
        net: netAmountInCents / 100,
        vat: vatAmountInCents / 100
    };
}

// Example: Total of $120.00 with 20% VAT
console.log(getVatFromTotalInCents(12000, 20));
// Output: { total: 120.00, net: 100.00, vat: 20.00 }

Python (Using the Decimal Module)

Python offers a built-in decimal module specifically designed for fixed-point and floating-point arithmetic in financial applications.

from decimal import Decimal, ROUND_HALF_UP

def extract_vat(total_amount, vat_rate):
    """
    total_amount: Decimal or string representation of total (e.g., '150.00')
    vat_rate: Decimal representation of the tax rate (e.g., '0.20' for 20%)
    """
    total = Decimal(str(total_amount))
    rate = Decimal(str(vat_rate))
    
    # Net = Total / (1 + Rate)
    net = total / (Decimal('1.0') + rate)
    # Round net to 2 decimal places
    net = net.quantize(Decimal('0.01'), rounding=ROUND_HALF_UP)
    
    # VAT = Total - Net
    vat = total - net
    
    return {
        'net': float(net),
        'vat': float(vat)
    }

# Example: Extracting 20% VAT from $150.00
result = extract_vat('150.00', '0.20')
print(result) # {'net': 125.0, 'vat': 25.0}

SQL (Database Queries)

When pulling transaction reports directly from SQL databases like PostgreSQL or MySQL, you should perform calculations using the NUMERIC or DECIMAL data types rather than FLOAT or DOUBLE.

-- Extracting 20% VAT from a transaction table
SELECT 
    id,
    gross_total,
    ROUND(gross_total / 1.20, 2) AS net_amount,
    ROUND(gross_total - (gross_total / 1.20), 2) AS vat_amount
FROM 
    transactions;

6. Official Rounding Rules & Compliance (HMRC & EU)

Calculating VAT mathematically is only half the battle; you must also comply with national tax rules regarding rounding. For instance, the UK's His Majesty's Revenue and Customs (HMRC) outlines clear rounding requirements in VAT Notice 700 (Section 17).

Rounding Down vs. Rounding to the Nearest Penny

Under HMRC rules, you are generally allowed to round down any fraction of a penny when calculating VAT on individual line items. This is highly beneficial for businesses because rounding down tiny fractions can prevent accumulating pennies of tax debt.

  • Method 1 (Rounding Down): If your calculation yields £10.156, you are permitted to truncate this to £10.15.
  • Method 2 (Rounding to the Nearest Penny): Alternatively, standard rounding rules apply where anything from 0.5p and up is rounded up, and anything below 0.5p is rounded down. Under this method, £10.156 becomes £10.16.

Whichever method you choose, consistency is vital. Tax authorities do not permit businesses to switch back and forth between rounding methods mid-year to manipulate tax obligations.

Line Items vs. Invoice Totals

Another common area of compliance friction is whether to calculate and round VAT on every individual item line or only on the final invoice total.

  • Line-by-line VAT calculation: You calculate the exact VAT on each item, round it to the nearest penny, and then sum those values to get the total VAT.
  • Summary VAT calculation: You sum all the net totals first, apply the VAT to the cumulative total, and then round the final tax amount.

Because of rounding discrepancies, these two methods can sometimes result in a difference of a few pence on a large invoice. Both methods are widely accepted by tax authorities, but you must establish one system within your accounting platform and apply it universally to prevent ledger mismatching.

7. Frequently Asked Questions (FAQ)

How do you calculate VAT backwards?

To calculate VAT backwards, you divide your gross inclusive total by $1$ plus the VAT decimal rate. For a standard 20% rate, you divide the total by $1.20$ to find the net price. Subtracting this net price from your original total gives you the exact VAT portion.

What is the formula to work out VAT inclusive amount items?

To find the VAT amount directly from an inclusive total, use the formula: VAT = Total * (Rate / (1 + Rate)). For example, with a 20% rate, the formula is Total * (0.20 / 1.20), which simplifies to Total / 6.

Why can't I just multiply my total by 20% to get the VAT?

Multiplying the total by 20% calculates tax on the gross price rather than the net price. Because the gross price already contains a 20% markup, you would end up calculating tax on the tax itself. This results in an artificially inflated VAT figure.

How do you reverse 15% GST?

To reverse 15% GST from a total price, divide the total price by $1.15$ to get the net (exclusive) price. To get the GST amount directly, multiply the total price by the multiplier $0.130435$ (which is $0.15 / 1.15$, or the fraction $3/23$).

What is the difference between gross total and net total?

The Net Total is the value of your goods or services before any VAT, GST, or sales taxes are added. The Gross Total is the final amount paid by the customer, which includes both the Net Total and the applicable tax amount.

Is sales tax the same as VAT?

While both are consumption taxes, they are calculated differently. Sales tax is typically only collected at the final point of sale to the consumer and is not included in the listed shelf price in countries like the United States. VAT (and GST) is collected at every stage of the supply chain and is almost always pre-calculated into the final retail price shown to the buyer.

Summary

Successfully getting VAT from a total boils down to using the correct mathematical division instead of standard multiplication. Remember these two golden formulas:

  • Net Price = Total / 1.20 (for 20% VAT)
  • VAT Amount = Total * (0.20 / 1.20) or Total / 6 (for 20% VAT)

By implementing these mathematical steps in your spreadsheets and using decimal-safe formatting in your application code, you can ensure flawless accounting, error-free client invoicing, and smooth tax compliance audits. Keep this multiplier chart handy, use robust rounding functions, and you'll never struggle with reverse tax calculations again.

Related articles
Cost Revenue Margin: Master Your Business Pricing Formulas
Cost Revenue Margin: Master Your Business Pricing Formulas
Master your cost revenue margin calculations. Discover step-by-step formulas to find revenue from cost, set margins, and protect your business profits.
May 22, 2026 · 16 min read
Read →
How to Calculate a Break Even PDF: Formula & Analysis Guide
How to Calculate a Break Even PDF: Formula & Analysis Guide
Download our step-by-step break even pdf guide. Learn the formulas, fixed vs. variable costs, and how to perform a seamless break-even analysis.
May 21, 2026 · 13 min read
Read →
Random Receipt Generator 2026: Free Maker & Testing Guide
Random Receipt Generator 2026: Free Maker & Testing Guide
Generate professional receipts with a random receipt generator 2026. Perfect for OCR software testing, design mockups, and cash transaction records.
May 21, 2026 · 10 min read
Read →
How to Extract an SVG Path from an Image: The Ultimate Developer & Designer Guide
How to Extract an SVG Path from an Image: The Ultimate Developer & Designer Guide
Learn how to extract a clean SVG path from an image. Discover online generators, design tool workflows (Figma, Illustrator), and programmatic code solutions.
May 22, 2026 · 13 min read
Read →
BMR Calorie Intake Guide: How to Calculate Daily Needs
BMR Calorie Intake Guide: How to Calculate Daily Needs
Uncover how to use your BMR calorie intake to build a sustainable meal plan. Learn the exact formulas to calculate BMR and adjust calories safely.
May 22, 2026 · 12 min read
Read →
Potion Dice Roller: The Ultimate TTRPG Immersion Crafting Guide
Potion Dice Roller: The Ultimate TTRPG Immersion Crafting Guide
Level up your D&D game with a custom potion dice roller! Learn how to craft or buy immersive healing potions and floating d20 dice potion rollers today.
May 22, 2026 · 18 min read
Read →
Deep Image Upscale: Complete AI Guide to 4K Super-Resolution
Deep Image Upscale: Complete AI Guide to 4K Super-Resolution
Discover how a deep image upscale uses deep learning and neural networks to transform low-resolution images into stunning, high-fidelity 4K masterpieces.
May 22, 2026 · 15 min read
Read →
How to Convert GIF to MP4 on Android: 3 Easy Methods
How to Convert GIF to MP4 on Android: 3 Easy Methods
Learn how to convert GIF to MP4 on Android easily. Follow our simple step-by-step guides using built-in tools, free apps, and quick online converters.
May 22, 2026 · 15 min read
Read →
How to Convert MP4 to SVG (and SVG to MP4): A Developer's Guide
How to Convert MP4 to SVG (and SVG to MP4): A Developer's Guide
Want to convert MP4 to SVG or turn SVG animations into high-quality MP4 videos? Learn the best workflows, online tools, and developer tricks here.
May 22, 2026 · 13 min read
Read →
Hex Picker Chrome: The Ultimate Guide to Chrome's Color Pickers
Hex Picker Chrome: The Ultimate Guide to Chrome's Color Pickers
Looking for the perfect hex picker chrome solution? Discover built-in DevTools secrets, top extensions, and modern web APIs for flawless color selection.
May 22, 2026 · 14 min read
Read →
Related articles
Related articles