EZRoutePlanner

Planning routes

How to find the shortest route between multiple stops

Why the order of your stops matters more than the roads between them, how to get close by hand, and when a route optimizer beats an hour with a map.

EZRoutePlanner teamUpdated 6 min read

The short answer

To find the shortest route between multiple stops, fix where you start, decide where you finish, then put the stops in the order that adds the least distance: no crossings and no doubling back. Up to about eight stops you can do it by hand. Beyond that the possible orders run into the millions, so paste the addresses into a route optimizer such as EZRoutePlanner and press Optimize Route.

8 stops, fixed start
40,320 possible orders
12 stops
479 million possible orders
What matters most
The order of the stops, then the roads between them
Our example routes
A median 39% shorter once optimized
On this page

01

Is the shortest route the same as the fastest route?

Not always. The shortest route covers the fewest miles; the fastest takes the least time. A highway loop can be longer but quicker than cutting through town, and a school zone at 3 p.m. can make the short way slow.

With many stops, though, the two mostly agree, because the big decision is the order of the stops, not the roads between them. A sensible sweep through the area saves far more than a faster road between any two stops. So the usual approach is: choose the order by distance, then let your navigation app pick the quickest roads for each leg as you drive, with live traffic.

Shortest route vs fastest route
Shortest routeFastest route
Keeps to a minimumMiles drivenTime behind the wheel
Matters most forFuel, mileage claims, vehicle wearHourly pay, appointment times
Changes with traffic?NoYes, hour by hour
Usually decided byThe order you choose for the stopsYour navigation app, leg by leg
Shortest route vs fastest route

EZRoutePlanner's Optimize Route orders stops by distance, not live traffic. Paid plans show the drive time of every leg, and Google Maps, Apple Maps or Waze handle traffic on the way.

02

Why is it hard to find the shortest route through many stops?

Because the number of possible orders grows faster than anyone can check. With your start fixed, 5 stops can be visited in 120 different orders; 12 stops have 479,001,600. Finding the shortest is the traveling salesman problem, one of the best-known hard problems in mathematics.

How the number of possible orders grows
Stops after the startPossible orders
5120
840,320
103,628,800
12479,001,600
15about 1.3 trillion
20about 2.4 quintillion
For a one-way route with a fixed start and an open end, the count is n factorial (5 × 4 × 3 × 2 × 1 for 5 stops). A round trip has half as many distinct loops, because a loop and its reverse are the same length.

Route planners don't check every order. They build a good route quickly, then improve it with small swaps until no swap helps. You can watch that happen on the traveling salesman solver: drop some points and see the loop untangle.

03

How do you find the shortest route by hand?

Up to about eight stops, a map and a few minutes get you close to the best order. The trick is to work from the outside in, not from the start outward.

  1. 1

    Put every stop on one map

    Plot them in a map app, or mark numbered dots on a printed map. Seeing them all at once is half the work.

  2. 2

    Stretch a rubber band around them

    Picture a band snapped around the outermost stops. On a flat map, the shortest loop always visits those outer stops in the order the band touches them, so they're the skeleton of your route.

  3. 3

    Tuck the inside stops in

    Fit each inner stop between the two neighboring stops where it adds the least extra distance. Start with the inner stops closest to the band.

  4. 4

    Remove every crossing

    If two legs cross, reverse the order of the stops between them and the route gets shorter. That's the same move optimizers repeat, called 2-opt.

  5. 5

    Break the loop where you need it

    For a round trip, start the loop at your base and pick a direction. For a one-way route, start at your base and let the route finish at the far side instead of coming back.

04

When should you use a route optimizer instead?

Once you're past about eight stops, or you plan routes more than once a week, an optimizer is quicker than ordering by hand and usually shorter. It also catches the routes that look fine but aren't, like the doubled-back leg you'd never notice in a list.

To measure what the order is worth, we compared stops in a random order, the way a list sorted by name falls on a map, with the same stops optimized, across 48 example routes of 7–12 stops on real roads in 24 cities. Optimizing cut the distance by a median 39%, from 17% on the luckiest list to 65% on the most scrambled.

© Mapbox © OpenStreetMap
In the order listed33 mi · 1 hr 38 min
© Mapbox © OpenStreetMap
Optimized15 mi · 49 min−55%
An example route in Denver, Colorado: the stops in the order they were listed, then optimized, both driven on real roads.
  1. Add the stops in EZRoutePlanner: paste them one per line or import a spreadsheet. Each is looked up and pinned on the map.
  2. Make a route from the stops and set where it starts: your base or any address.
  3. Choose the finish. Turn on Round Trip to come back, pin a last stop to end somewhere specific, or leave both off.
  4. Press Optimize Route. The start stays put and the rest are reordered by nearest neighbour followed by 2-opt swaps. The route is drawn on real roads with every leg's distance.

The free plan optimizes routes of up to 30 stops; paid plans go up to 200. How route optimization works explains the method in more depth.

05

Does a round trip change the shortest route?

Yes, often completely. A one-way route can save the farthest stop for last and end there. A round trip has to come back, so its best order goes out along one side of the area and returns along the other. Same stops, different answer.

Picture six stops strung along a highway north of town, with the shop at the south end. One-way, the shortest route visits them in a line heading north and stops at the last one. As a round trip you'll drive the full length twice anyway, so it pays to take the stops east of the highway on the way up and the stops west of it on the way back, instead of crossing over at every one.

Tell the optimizer which kind of route it is before you press the button, or it solves the wrong problem. More in how to plan a round trip route.

06

Can Google Maps find the shortest route between multiple stops?

Google Maps finds good roads between your stops, but it keeps the stops in the order you typed and won't reorder them. It also holds up to 10 places in one route. So you can drive the shortest route in Google Maps, but you have to work out the order first.

Two ways to do that: order the stops by hand with the method above and drag them into place in Google Maps, or optimize them in a route planner and export the result as Google Maps links, split into 10-stop legs for you. More in does Google Maps optimize routes?.

Questions people ask

What is the most efficient route with multiple stops?

The order that covers your stops with the least total driving, given where you start and finish. In practice it's a route with no crossing legs that sweeps through one area at a time and ends near where you need to be.

Should I just go to the closest stop each time?

It's a decent start, but it often leaves a few stragglers spread out at the end of the day, with a long drive between them. Optimizers begin that way and then fix the damage with swaps.

Is there a free tool to find the shortest route between multiple points?

Yes. EZRoutePlanner's free plan optimizes routes of up to 30 real addresses with a free account. To experiment with points on a blank canvas, the traveling salesman solver runs in your browser with no account.

Does the shortest route account for traffic or appointment times?

Not in EZRoutePlanner: it orders stops by distance, with no live traffic and no time windows. Build fixed appointments into the route yourself, and let your navigation app handle traffic as you drive.

How many stops can I optimize at once?

Up to 30 per route on EZRoutePlanner's free plan and up to 200 on paid plans. Google Maps doesn't optimize at all and stops at 10 places per route.

How do I find the shortest routes for several drivers?

Split the stops into one group per driver, usually by area, and optimize each group as its own route. EZRoutePlanner doesn't divide stops between drivers for you; you lasso each area on the map. See planning routes for multiple drivers.

Plan your next route in minutes.

Paste your addresses or drop in a spreadsheet, optimize the order with one click, and send it to your phone. Free to start, no credit card.

Free plan. No credit card. Works in any browser.

How to Find the Shortest Route Between Multiple Stops