Shipping Costs Based on Distance for Magento 2
4.5 2 Based on 2 reviews




Precisely Calculate Shipping Costs Based on Distance Using the Google Maps API
Take full control of your shipping costs with our Magento 2 extension, a powerful tool designed to calculate precise delivery charges based on the exact distance to your customer’s address. By leveraging the robust Google Maps API, this extension dynamically computes shipping rates using the actual transport route rather than the straight-line distance—ensuring accurate, real-world pricing. This is especially beneficial whether you operate locally or offer inhouse shipping, as you can always rely on the most precise cost estimates.
The extension ensures fair and consistent pricing that aligns with the real distance traveled, eliminating guesswork and overcharges. Thanks to its flexible configuration settings, you can create tailored shipping strategies that account for local deliveries, cross-border shipping, or any other logistical requirement. Its built-in localization options allow you to adapt seamlessly to different regions, while the error-handling features ensure smooth, uninterrupted calculations during checkout.
With this extension, your Magento 2 store will be equipped with a streamlined and reliable shipping cost calculator, saving you time, increasing accuracy, and enhancing customer satisfaction.
Google Maps API Key
Please keep in mind that an active Google API Key for Google Maps is needed to use this extension. The good news is that Google provides a free tier for normal usage, allowing most small to medium-sized businesses to benefit from distance-based calculations without additional costs.
Smart API Usage with 12h Caching
Avoid unnecessary API calls with our new 12-hour caching system. It stores recent shipping data to reduce external requests, saving time and cost. This improves performance, ensures faster load times, and keeps your Magento 2 store running efficiently, even with frequent shipping rate lookups.

Set the Calculation Methods

Set your Limits

Offer Distance Shipping Method


Be transparant about your Delivery Costs
Whether you handle your own deliveries or partner with external couriers, this extension is a game-changer for your Magento 2 webshop. With its dynamic distance-based calculations, you’ll never have to second-guess your shipping rates. The extensive customization options give you complete control to configure rates exactly as you need—ensuring you charge appropriately, no matter the distance.
Show the Shipping Cost Estimation on the Product Page
Easily add a shipping calculator directly to your product page, allowing customers to enter their postal code and instantly see the estimated shipping costs. This feature streamlines the delivery process and boosts conversion rates by providing clarity and convenience during the purchasing journey.
Tailored Experience with Advanced Shipping Options
The Shipping Costs Based on Distance extension offers all the features you need to customize your shipping calculations with ease. Key options include:
- Set your store or warehouse address as the starting point.
- Choose to calculate distances in kilometers or miles.
- Customize your shipping rate calculation methods.
- Combine variable rates per kilometer with fixed base fees.
- Set maximum allowable delivery distances to avoid costly long-haul shipments.
- Automatically check and validate addresses, with error messages if an address is unrecognizable.
These flexible configurations let you tailor your shipping strategy to fit any business model, whether you operate locally or on a global scale.


Flexible Shipping Rules to Match Your Needs
This extension stands out due to its versatility and adaptability. No matter how complex your shipping requirements are, you can configure them with just a few clicks. Do you need separate rates for short and long distances? Want to waive fees for orders above a certain amount? No problem. Customize everything to match your needs with filters and limits such as:
- Free shipping: Set a minimum order amount above which shipping is free.
- Minimum and maximum shipping costs: Ensure your charges fall within a predefined range.
- Set by country: Enable or disable the shipping method based on specific regions.
- Limit per order amount: Restrict the method to orders within a certain price range.
- Limit to distance: Define the maximum distance for eligibility.
With these options, you can create a seamless shipping experience that fits your business and customer expectations.
Global Reach with Detailed Insights
Expand your reach with confidence, knowing that this extension calculates shipping costs accurately no matter where your customers are. Whether you deliver locally or globally, you can easily configure shipping availability by region and ensure that rates are calculated appropriately for each location.
Every shipping calculation and Google Maps API request is logged, providing transparency and allowing you to troubleshoot any potential issues. Quickly see how the distance was calculated or why a shipping option wasn’t displayed. This level of visibility helps you maintain a smooth and reliable shipping process.
Take the guesswork out of distance-based shipping with a powerful extension that offers accuracy, flexibility, and global scalability—all built directly into your Magento 2 store.

2 of many customers
Rate this plugin with 9 out of 10
Perfect!
Excellent App, support and guidance
Knowledgebase
All familiar Help articles
A list of the most frequently asked questions from the Shipping Costs Based on Distance extension for Magento 2. We've tried our best to help you with the installation, configuration and troubleshooting. If you do not find the answer you were looking for, you can always send us a message through this form.
Changelog 1.9.0 is released on 8 January 2026
Our plugins are regularly updated to ensure compatibility with the latest Magento release.
-
Features:
- Added support for the new Routes API for distance-based shipping calculations.
- Added an option to continue using the legacy Distance Matrix API (default). Minimum requirements:
- Magento 2.3.x & PHP 7.4 Note:
- For Existing Installations: Your installation will continue using Distance Matrix API by default. You can migrate to Routes API at your convenience by enabling it in Google Cloud Console and switching the configuration.
-
Bugfixes:
- Fixed issue with conditions filter where the method was not showing in some cases. Minimum requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Improvements:
- Improved "Hide other shipping methods" on country limit Requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Features:
- Added support for PHP 8.4 and Magento 2.4.8
- Introduced extensive caching to significantly reduce API call volume Requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Features:
- New option to apply Distance Shipping only to eligible products
- New toggle to enable Distance Shipping for mixed carts
- New option to hide other shipping methods when Distance Shipping is selected Requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Improvements:
- Implemented additional validation checks when saving shipping price tiers from the admin panel to ensure data accuracy
- Small code refactor on carriers model Requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Improvements:
- Refactored frontendend implementation
- Updated Admin UI Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Changes:
- Added support for PHP 8.2 Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Changes:
- Removed dependency on quote/session and use data or request Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
100% Unencrypted Code quality guaranteed.

Adobe Commerce Marketplace Approved
This extension is listed on the official Adobe Commerce Marketplace and has passed their review process for code quality, performance and security.
Adobe Marketplace approval means the extension follows Magento coding standards and integrates properly with the platform. Updates go through the same review process.

Hyvä Compatible Plugin
This extension includes full support for Hyva Themes. All frontend components, widgets and templates work natively with Hyva's Alpine.js and Tailwind CSS stack.
The extension works out of the box on Hyva and is tested with every new Hyva release to ensure continued compatibility.

GraphQL Made Ready
This extension exposes its data and configuration through Magento's GraphQL API. You can query and mutate data directly from headless frontends or custom applications.
The GraphQL schema follows Magento's conventions and covers all key functionality of the extension. This makes it ready for PWA Studio, Vue Storefront or any other headless setup.

Magento Cloud Support
This extension is fully compatible with Adobe Commerce Cloud (Magento Cloud). It works with the read-only filesystem, the build and deploy pipeline and cloud-specific caching layers.
No additional configuration or workarounds are needed for cloud environments. The extension handles static content deployment and config management the same way as on-premise installations.

Private Composer Repo
After purchase you get access to a private Composer repository with personal credentials. Install and update the extension with a single composer command, just like any other dependency.
Your Composer credentials are available in your account dashboard. Updates are published to the repository as soon as a new version is released, so you always have access to the latest version.