Integrate accurate tariff and duty calculations into your WooCommerce store to display true landed costs and protect your profit margins.
WooCommerce powers over 5 million online stores worldwide, and many source products internationally. Without accurate tariff calculations, these stores either overcharge customers with inflated estimates or undercharge and absorb unexpected duty costs. In 2026, with China tariffs at 30-35% and the de minimis exemption eliminated, the margin for error on duty calculations has shrunk to zero. A proper tariff calculator integration is now a requirement for any WooCommerce store selling imported goods.
There are three ways to add tariff calculations to WooCommerce. First, install the MarginHub plugin directly from the WordPress plugin directory for a no-code setup. Second, use the MarginHub REST API to build custom calculations into your theme or existing plugins. Third, use our webhook system to trigger duty calculations at specific points in your checkout flow. Most stores use the plugin for simplicity, while stores with custom checkout flows prefer the API integration.
Once installed, the plugin calculates duties during the cart and checkout process based on each product's HS code, the shipping origin, and the customer's delivery address. You can display duties as a separate line item or roll them into the product price. The plugin also generates the customs documentation needed for international shipments, saving you time on every order.
No, WooCommerce does not include tariff or customs duty calculations out of the box. You need a plugin or API integration to calculate duties based on product HS codes, origin country, and destination. MarginHub provides a WooCommerce plugin that adds real-time tariff calculations to your store.
The MarginHub WooCommerce plugin adds an HS Code field to your product editor. You can manually enter codes or use our AI classification tool to automatically assign the correct 6-10 digit HS code based on your product description, materials, and intended use.
Yes. With the MarginHub plugin, you can configure duty-inclusive pricing that factors tariffs into the displayed price. Customers see a single all-in price, which improves conversion rates and eliminates surprise charges on delivery.
Accuracy depends on correct HS code classification and up-to-date tariff rate data. MarginHub pulls rates from official USITC and CBP databases daily, so your calculations reflect current tariff schedules including the Section 122 surcharge and all country-specific rates.
Install the MarginHub plugin and start showing accurate duty-inclusive pricing in your WooCommerce store today.
Start Free Trial