Loading...
Skip navigation

FAQ

How is VAT calculated? Horizontally or vertically?

How is VAT calculated? Horizontally or vertically?

Short answer

In the TYPO3 Shop, VAT is calculated horizontally. That means: all line items that share the same tax class are first summed net, and VAT is then applied once to the subtotal of that class. This yields precise tax amounts and a clean, accounting‑friendly result.

Horizontal vs. vertical calculation

  • Horizontal (used here): Sum all net amounts per tax class → apply the tax rate once to the subtotal → round at subtotal level.
  • Vertical: Calculate and round VAT per line item and then sum up those rounded results.

Why we favor horizontal calculation:

  • It avoids rounding noise across many items
  • Totals match accounting expectations for aggregated invoices
  • Stable, reproducible results even with many micro amounts

How it works in detail

  1. Group all basket positions by tax class (e.g., 19%, 7%).
  2. Sum the net for each group (subtotal per tax class).
  3. Compute VAT for the group once: subtotal × tax rate.
  4. Round at subtotal level according to your currency precision.
  5. Sum the gross totals of all groups for the invoice total.

Rounding behavior

  • Rounding occurs on the aggregated tax‑class subtotal level (not per line item).
  • Currency precision is respected (typically 2 decimals).
  • This prevents cumulative rounding differences you often see with vertical calculations.

Example

  • Items A, B, C (all 19%): Net 10.01 + 10.01 + 10.01 = 30.03
  • VAT (19%) horizontally: 30.03 × 0.19 = 5.7057 → 5.71
  • Gross for this class: 35.74

Vertical would calculate tax per line (1.9019 → 1.90 each) and sum 5.70 — a difference due solely to rounding per line. Horizontal keeps the mathematically precise total.

What this means for you

  • Clear and audit‑ready totals on invoices
  • Less ambiguity in reconciliations with finance systems
  • Predictable behavior for promotions and micro‑pricing

Conclusion

VAT is calculated horizontally in the TYPO3 Shop. Identical tax‑class positions are aggregated net, VAT is applied once to the subtotal, and rounding occurs at the subtotal level to provide exact, accounting‑friendly results.

Back

More frequently asked questions

Documentation
TYPO3 Shop Extension

TYPO3 Shop by coding.ms

An extensive shop for TYPO3 for realizing Webshops, Online-Shops or Payment-Subscriptions, comparable with tt_products, Cart or Aimeos. It includes PayPal, PayPal-Checkout, Klarna, Stripe, Bookmarks, UPS-API, invoice generation, a backend module, compare feature, graduated prices, plus product variants, filters, and tax and shipping logic for practical shop operations.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
HRW_________2IS______
9_R____7____C_Z___Z1N
4KG___QHT___IYY______
__8____X____O_4___9PZ
U7G_________ITW______