ThisCalculator

Everyday

VAT Code Calculator: How to Find It

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

VAT Code Calculator: How to Find It

A VAT code calculator works out which value-added tax (VAT) rate applies to a product or service based on its type, location, and sometimes the buyer’s status. You enter the item category and the country (or state/province), and the calculator returns the correct VAT code and the percentage rate to charge. This page explains how VAT codes are structured, how to interpret them, and how to avoid the most common mistakes.

Formula

A VAT code is not a standard universal identifier; it is a label that a tax authority or accounting system uses to group supplies that share the same VAT treatment. The formula for a typical VAT code is:

VAT code = (Country/Region) + (Supply type) + (Rate)

Where:

  • Country/Region – the tax jurisdiction (e.g., UK, DE, CA-ON, US-TX).
  • Supply type – goods, services, or digital services (each may have different rules).
  • Rate – the percentage applied (e.g., 20%, 5%, 0%).

In practice, VAT codes are often alphanumeric, like “S� for standard rate, “Z� for zero rate, or “E� for exempt in the UK. The calculator above uses a generic structure to illustrate how the code is built from the three key inputs.

Worked Example

Using the default values from the calculator (Country = UK, Supply type = Goods, Known rate = 20%):

  1. Start with the country code: UK.
  2. Add the supply type code: 1 for goods.
  3. Add the rate as a whole number: 20.
  4. Combine them with hyphens: UK-1-20.

The calculator also shows the VAT amount on 100 units of currency: 100 × 20 / 100 = 20.00. So the total including VAT would be 120.00.

How VAT Codes Are Used

VAT codes are primarily used in accounting software and tax returns to automate the calculation of VAT. When a business issues an invoice, it assigns a VAT code to each line item. The software then uses that code to determine the rate to apply, the amount to report, and the box on the VAT return where the transaction belongs.

In the European Union, VAT codes are often linked to the VAT Directive’s categories (standard, reduced, zero, exempt, and out of scope). In Canada, GST/HST codes are similar. In the United States, there is no federal VAT, but sales tax codes serve a comparable purpose at the state and local level.

How to Choose the Right VAT Code

Choosing the correct VAT code is essential for compliance. Here are the main factors to consider:

  • Type of supply – goods, services, or digital services. Digital services often have special rules about the place of supply.
  • Place of supply – where the customer is located, not where the seller is, for many cross-border transactions.
  • Customer status – whether the buyer is a business (B2B) or a consumer (B2C). B2B sales may be reverse-charged.
  • Specific exemptions or reductions – some items like books, children’s clothing, or medical supplies have reduced or zero rates.

If you are unsure, check the tax authority’s published list of goods and services and their rates. The calculator above helps you build a code once you know the rate, but it does not replace official guidance.

Common Mistakes and Misconceptions

One common mistake is assuming the VAT code is the same as the VAT rate. The rate is just one part of the code; the code also encodes the type of supply and the jurisdiction. Another mistake is using a code from one country in another without checking – a “S� code in the UK means standard rate, but in Germany it might be different.

Another misconception is that VAT is always 20%. Many countries have multiple rates. For example, the UK has 20% standard, 5% reduced, and 0% zero. France has 20% standard, 10% reduced, 5.5% reduced, and 2.1% super-reduced. Always verify the current rate for your specific product and location.

Limits of a VAT Code Calculator

A simple calculator cannot know every rule. It cannot determine if a supply is exempt (like most financial services) or out of scope (like certain cross-border services). It also cannot handle special schemes like the margin scheme for second-hand goods or the flat-rate scheme for small businesses.

For accurate compliance, always refer to the official tax authority’s guidance or consult a tax professional. The calculator is a starting point to understand the structure, not a substitute for legal advice.

Frequently Asked Questions

What is the difference between VAT code and VAT rate?

The VAT rate is the percentage applied to the price (e.g., 20%). The VAT code is a label that groups transactions with the same rate and treatment for reporting purposes. For example, in the UK, code “S� means standard rate, “Z� means zero rate, and “E� means exempt.

Can I use the same VAT code for goods and services?

Usually no, because goods and services may have different rates or different rules for place of supply. For example, digital services to consumers are taxed in the customer’s country, while physical goods are taxed in the seller’s country (unless thresholds are exceeded).

How do I find the VAT code for my product?

Check your local tax authority’s website for a list of goods and services and their VAT treatment. Many authorities publish a “VAT rate� search tool. Alternatively, use the calculator above to build a code once you know the rate and supply type.

What is a VAT code on an invoice?

On an invoice, the VAT code is a shorthand that tells the accounting system which rate to apply and how to report the sale. It is not usually shown to the customer, but it appears on internal documents and in the accounting software.

Do I need a VAT code if I am not VAT-registered?

If you are not VAT-registered, you generally do not charge VAT, so you do not need VAT codes for output tax. However, if you are registered, you must use them to correctly file your VAT return.

Can a VAT code calculator handle cross-border sales?

Only if you enter the correct place of supply and customer status. Many cross-border sales are reverse-charged (B2B) or fall under the One-Stop-Shop (OSS) scheme for digital services. The calculator above does not include these rules, so use it with caution for international transactions.

Related

Formula used
in country | Country | - | UK | 0
in type | Supply type | Goods=1, Services=2, Digital=3 | 1 | 0
in rate | Known rate | % | 20 | 0
out code | VAT code | - | (country + "-" + type + "-" + round(rate)) | 0
out amount | VAT on 100 | currency | 100 * rate / 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.