How to Add Flat Rate Shipping to Your WooCommerce Store
Configure WooCommerce flat rate shipping with zones, fixed costs, quantity-based formulas, and shipping classes without installing an additional plugin.
Last updated:
Reviewed for accuracy by Jesse Nickles
Add flat rate shipping to a zone
WooCommerce offers flat rate shipping through shipping zones, so the customer's address determines where your rate is available. First, check Shipping location(s) under WooCommerce → Settings → General to make sure your store allows shipping to the intended destinations.
- Go to WooCommerce → Settings → Shipping → Shipping zones. Choose an existing zone, or click Add zone, enter its name and regions or postcodes, and save the new zone.
- Click Edit beside the zone where you want to charge the rate.
- Click Add shipping method, select Flat rate, and click Continue.
- Enter a customer-facing Name, such as Standard shipping, and choose the appropriate Tax status.
- Enter
5in Cost to charge 5 in your store's currency, then click Save zone and method.
That cost is charged once for a standard single-package shipment, not once per product. Add a flat rate to other zones only where you want it offered. WooCommerce uses the first zone matching a shipping address, so put narrower zones above broader, overlapping ones. The Rest of the world zone handles addresses that match no other zone; leave it without methods if you do not ship to those destinations. See WooCommerce's shipping zone instructions for region and postcode rules.
Use a fixed cost or a quantity formula
For a straightforward rate, keep a single number in Cost. If shipping should increase with the number of items, WooCommerce also accepts formulas using [qty], the quantity included in the shipping calculation, normally the shippable items in the package.
| Cost field | Result |
|---|---|
5 | $5 for the shipment |
2 * [qty] | $2 per shippable item |
5 + ( 2 * [qty] ) | $5 base charge plus $2 per shippable item |
With the last formula, one shippable item costs $7 to send and three cost $11. The examples assume one shipping package and a store using US dollars; shipping tax, if enabled, is separate. WooCommerce also supports percentage-based formulas in its flat rate documentation, but start with a fixed amount unless you need more complex pricing.
Set rates for different shipping classes
Shipping classes let you group products with different shipping needs, such as heavy items and small parcels. Create classes under WooCommerce → Settings → Shipping → Classes and assign them in the product's shipping settings. A class alone does not charge anything; you must configure its cost in the Flat rate method. See WooCommerce's shipping class instructions.
When shipping classes exist, the flat rate settings include a cost field for each class and a No shipping class cost field for unassigned products. These charges are added to the main Cost field. Set that main cost to 0 if you want the class charges alone to determine the rate.
- Per class: Adds the configured cost for each applicable class in the shipment.
- Per order: Adds only the highest applicable class cost.
For example, with a base cost of 0, a $10 heavy-item class and a $4 small-item class, a shipment containing both costs $14 with Per class or $10 with Per order. With a $5 base cost instead, those amounts become $19 and $15. Shipping classes do not automatically calculate live carrier prices by weight or distance.
Test the rate before accepting orders
- Add a shippable product to the cart and enter an address in the configured zone. Confirm the expected method and charge appear in the cart or checkout.
- If you use
[qty], test one item and three items. For5 + ( 2 * [qty] ), the shipping charges should be $7 and $11 before shipping tax. - Try an address in a different zone and one you do not serve. Confirm the available methods match your shipping policy.
- If you use shipping classes, test a product from each class and a mixed cart. Compare the rate with your Per class or Per order choice.
HoverCraft shows WooCommerce's configured shipping options in its cart and checkout layouts; the theme does not calculate the shipping rate itself.
If the flat rate is missing or incorrect
First check the customer's shipping address and the order of your zones. WooCommerce selects only the first matching zone: a broader zone above a narrower one can prevent the narrower zone's Flat rate method from appearing, even when that method is configured correctly. Then confirm the matched zone has the method enabled and the cart contains a product requiring shipping.
If the charge is unexpected, review the main cost, any [qty] formula, class costs, calculation type, and shipping tax settings. Extensions that split an order into multiple shipping packages can also apply rates separately to each package. If you want free shipping based on an order total or coupon instead, add WooCommerce's separate Free shipping method to the relevant zone; the coupon guide covers coupon eligibility.