VAT calculator
Gross/net · Rates · WooCommerce
Enter an amount and calculate included or stripped VAT for all three rates at once. Exportable summary table and WooCommerce PHP snippets included.
Gross price (VAT included)
incl. VAT
Net price (VAT excluded)
excl. VAT
Rate for quick copy:
Split VAT (gross → net)
net = gross / (1 + rate)
Add VAT (net → gross)
gross = net × (1 + rate)
VAT amount
vat = gross − net
Prices to calculate
Direction:
Results
Results will appear here…
4%
Super-reduced rate
Essential foodstuffs
Vegetables, fruit, cereals, pulses
Pharmaceutical products
Books, newspapers, periodicals
Social housing
First-home sales
Urban public transport
Vegetables, fruit, cereals, pulses
Pharmaceutical products
Books, newspapers, periodicals
Social housing
First-home sales
Urban public transport
10%
Reduced rate
Food products (meat, fish, eggs…)
Food and drink supply
Restaurants, bars, catering
Hotels and accommodation
Domestic electricity
Methane gas for heating
Cleaning, removals
Food and drink supply
Restaurants, bars, catering
Hotels and accommodation
Domestic electricity
Methane gas for heating
Cleaning, removals
22%
Standard rate
All goods and services not specifically
falling under other rates.
Electronics, clothing, cars,
professional services, software,
advertising, consulting, generic
e-commerce, tools, machinery
falling under other rates.
Electronics, clothing, cars,
professional services, software,
advertising, consulting, generic
e-commerce, tools, machinery
PHP functions for WooCommerce / WordPress
/** * Calcolo IVA per WooCommerce / WordPress * Aliquote italiane: 4%, 10%, 22% */ function scorpora_iva( $lordo, $aliquota = 22 ) { $netto = $lordo / ( 1 + ( $aliquota / 100 ) ); return [ 'netto' => round( $netto, 2 ), 'iva' => round( $lordo - $netto, 2 ), 'lordo' => $lordo, 'aliquota' => $aliquota, ]; } function aggiungi_iva( $netto, $aliquota = 22 ) { $lordo = $netto * ( 1 + ( $aliquota / 100 ) ); return [ 'netto' => $netto, 'iva' => round( $lordo - $netto, 2 ), 'lordo' => round( $lordo, 2 ), 'aliquota' => $aliquota, ]; } // Uso: // $r = scorpora_iva( 122, 22 ); → netto: 100, iva: 22 // $r = aggiungi_iva( 100, 22 ); → lordo: 122, iva: 22 // $r = scorpora_iva( wc_get_price_including_tax( $product ), 22 );
VAT calculation is one of the most frequent operations for anyone managing an e-commerce store or issuing invoices. Rates (4%, 10%, 22%) apply to different contexts and the calculation must always be accurate.
This calculator:
- Calculates VAT amount and gross total from the net amount
- Strips VAT from a gross price
- Shows results for all three rates simultaneously
- Batch mode for multiple amounts
- WooCommerce PHP snippets for price management
- CSV export