Maxim Mironjuk
-
October 14, 2025
Magento 2 manages taxes through an interplay of Product Tax Class, Customer Tax Class, Tax Zones and Rates, and tax rules that tie these three dimensions together into a concrete tax rate. For shops serving multiple countries, correct tax configuration decides whether customers in Germany, Austria, France or Switzerland see the right rate, whether EU B2B transactions are handled correctly via reverse charge, and whether tax rules stay performant when many countries and store views are served at once. This deep dive covers tax classes, tax rates, tax rules, programmatic management via TaxRuleRepository and TaxRateRepository, custom tax calculation via a plugin on Magento Tax Model Calculation, as well as Fixed Product Tax and common pitfalls.