Magento Add Shipping Tax to Tax Breakdown And Grand Total

Magento Add Shipping Tax to Tax Breakdown And Grand Total

July 21, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Add Shipping Tax to Tax Breakdown And Grand Total

Modifying Tax Calculations in Magento: Including Shipping Tax

Magento is an excellent e-commerce platform for managing products, orders, and customer interactions. However, customizing the tax calculations to include shipping costs requires a bit of configuration. Let’s dive into how you can modify your Magento store to calculate 20% tax on both the subtotal and the shipping fee.

Understanding the Current Tax Calculation

By default, in your current setup, Magento calculates tax only on the subtotal (£10.00). It applies a 20% rate to this amount to arrive at the tax value of £2.00.

The Desired Tax Calculation: Including Shipping

You want to apply a 20% tax rate to both the subtotal and the shipping fee. This means that Magento should calculate tax as follows:

  1. Calculate 20% of the subtotal (£10.00): £2.00.
  2. Calculate 20% of the shipping fee (£5.00): £1.00.
  3. Sum these two values: £2.00 + £1.00 = £3.00.

Modifying Tax Calculation in Magento

To achieve this, you’ll need to modify a few settings and potentially override some core files if your version of Magento requires it.

Step 1: Enable Shipping Tax in System Configuration

  1. Log into the Magento admin panel.
  2. Navigate to Stores > Settings > Configuration.
  3. Choose Sales from the left menu.
  4. Click on Tax under the Sales Tax section.
  5. Set the ‘Calculate Tax for Shipping Amount’ option to ‘Yes’.
  6. Save your changes.

Step 2: Update Your Tax Calculation Method (if necessary)

If enabling the shipping tax setting doesn’t work, you may need to update your tax calculation method.

  1. Navigate to Stores > Sales > Tax Rules.
  2. Choose a rule that applies to your products and click on Edit.
  3. Go to the ‘Calculation Settings’ tab.
  4. Set the ‘Tax Calculation Method Based On’ option to ‘Total’.
  5. Save your changes.

Step 3: Check Your Tax Rates

Ensure that your tax rates are configured correctly:

  1. Navigate to Stores > Sales > Tax Zones and Rates.
  2. Ensure your tax rate is set to 20% (or the desired percentage).
  3. Make sure it’s applied to both your products and shipping rates.

Conclusion: Achieving the Desired Tax Breakdown

By following these steps, you should now see that Magento calculates a total tax amount of £3.00—20% of the subtotal plus 20% of the shipping fee.

Remember, if you’re using an older version of Magento (like 1.x or 2.x), some of these settings might be slightly different. Always refer to your specific documentation for precise instructions.

For a deeper dive into Magento tax configuration and customization, I recommend checking out “Magento Tax Configuration: A Comprehensive Guide” on the Laravel Company Blog.

This guide provides more detailed information about setting up tax rates, applying them to specific products or customer groups, and ensuring your totals display accurately in the checkout process.

Catalog Admin Configuration Orders

Our network