How to set shipping rates by zip code on Shopify

To set shipping rates by zip code on Shopify, install a postal-code rates app such as Zipcode Shipping Rate, create a zone, add the zip codes it covers, add a rate with a price, test it with Test mode, then turn it on.
One flat shipping rate for a whole country is simple, but it means you overcharge nearby customers and lose money on far-away ones. Setting rates by zip code fixes that. Here is how to do it on Shopify, step by step.
Why a flat rate costs you money
Shopify's built-in shipping zones work at the country and region level. If a customer 5 miles away and a customer 500 miles away pay the same fee, one of them is paying too much or you are absorbing the difference. Pricing by zip or postal code lets the fee follow the real cost of getting the parcel there.
What you need before you start
- A list of the areas you deliver to, and what each should cost.
- Rough weight and order-value bands if you want tiered prices.
- An app that adds postal-code rates at checkout. This guide uses Zipcode Shipping Rate, which works on every Shopify plan, including Basic.
Step 1: Create a zone
A zone is a named group of postal codes for one country, for example "West Coast" or "Inner London". Start with the areas you already know the cost for. Everything else can be added later.
Step 2: Add the postal codes
You can match codes three ways: an exact code like 90210, a numeric range like 10000-19999, or a prefix like SW1*. Our guide to postal code matching patterns explains each one.
Step 3: Add rates to the zone
Give each rate a clear name, such as "Standard delivery", and set its price. On the Pro plan you can also tie a rate to an order weight range or an order value range inside the zone. See how to charge shipping by weight and order value.
Step 4: Test before customers see it
Leave Test mode on and use the built-in Test-a-zip checker. Type a zip code and see which zone and rate it returns. Try a code at the edge of a range and a code you expect not to match.
Tip: test at least one code per zone, plus one code from each end of every range. Most mistakes hide at the edges.
Step 5: Go live
When every test returns the rate you expect, turn the app on. Customers now see the matching fee at checkout before they pay. Place a real test order from a zip code in each zone to confirm everything end to end.
Keep it maintainable
- Use clear zone names so you can find them later.
- Group neighbouring codes into ranges instead of listing them one by one.
- Review your rates whenever your carrier prices change.
Frequently asked questions
Can Shopify charge different shipping rates by zip code?
Shopify's built-in shipping zones work at the country and region level. To price by zip or postal code you can add an app like Zipcode Shipping Rate, which works on every Shopify plan.
How long does it take to set up zip-code shipping?
A first zone usually takes a few minutes: create the zone, add its codes, add a rate and test it. More zones take longer, depending on how many areas you serve.
Can I test the rates before customers see them?
Yes. Keep Test mode on and use the Test-a-zip checker to see which rate any zip code returns before you go live.
We believe human support is best. Our team helps on every plan, including Free and Shopify Basic.
Set up zip-code shipping in minutes
Start on the free plan. Add zones, test any zip code, and go live when you are ready.
Install free on Shopify

