A cruising sloop sailing close-hauled at dawn, with a long line of grey cloud on the horizon.

How weather routing works

Updated November 2026, 11 min read

A weather routing program searches for the path between two points that takes the least time, or that scores best on another measure the sailor chooses. The boat's speed changes with the wind and the sea, and the wind and the sea change with place and time, so the fastest path can be longer in miles than the direct one. The program works from a model of the boat, a forecast laid out on a grid, and a method that tests a large number of possible paths.

Routing began in the 1950s as a hand method for ships, drawn on charts. Weather routing for sailors covers how to use a computed route when you plan a passage.

The short answer.

For each short stretch of a possible path, the program takes the forecast wind at that position and hour, reads the boat speed for that wind from its polars, adds any current, and works out how far the boat goes in that time. The isochrone method does this outward from the start, one time step at a time. Graph search methods do it across a fixed set of points laid over the sea. Both return the path with the shortest passage time, or the lowest value of another cost, for the polars and the forecast the program was given.

The routing problem.

The great circle is the shortest path between two points on the earth's surface. A rhumb line crosses every meridian at the same angle, so it is a single compass course, drawn as a straight line on a Mercator chart. Neither line takes any account of the wind.

A sailboat's speed depends on the strength of the wind and its angle to the boat's heading. A boat on the great circle can spend a day in a calm or close-hauled, while a longer path keeps the boat in steady wind on a reach and arrives earlier. The forecast also changes while the boat is underway, so the best heading from any position depends on the hour the boat gets there. The routing problem is to find the path, and the timing along it, with the lowest passage time. Some programs minimize a cost that adds penalties for rough conditions to the passage time.

The inputs.

A routing program works from three kinds of input.

  • The boat's polars. The polars give the boat's speed through the water for every true wind strength and angle. Many programs also take a motoring speed, used when the wind falls below a speed the sailor chooses. Published polars describe a light boat in flat water, so they are often derated for a loaded cruising boat.
  • The gridded forecast. A weather model gives its forecast at grid points spaced evenly in latitude and longitude, at fixed time steps. Each grid point carries the wind speed and direction. Many programs also take the wave height, period, and direction, and the ocean or tidal current, from grids of the same kind.
  • The constraints. These are the limits the route has to respect. They include land, water too shallow for the boat, reefs, areas the sailor excludes, waypoints the route must pass, and the maximum wind speed or wave height the sailor allows.

Time steps and interpolation.

A forecast gives values only at its grid points and its time steps, and the boat is almost always between them. The program interpolates, which means it estimates the value at the boat's position and time from the values around it. The simplest way is linear interpolation, a weighted average of the surrounding grid points and of the forecast hours before and after, with more weight on the closer ones.

Interpolation cannot add detail the forecast does not contain. The global forecasts commonly used for routing are published on grids about a quarter of a degree apart, which is 15 nm in latitude. A single squall, or the wind accelerating around a point of land, is smaller than that spacing and is missing from the forecast the program uses.

The isochrone method.

An isochrone is a line joining the positions the boat can reach in the same time from the start. The isochrone method builds these lines one after another.

  1. From the departure point, the program tries a set of headings, for example one every few degrees on either side of the direct course. On each heading it finds the true wind angle, looks up the speed on the polars, allows for any current, and moves the boat forward one time step.
  2. The outer edge of the positions reached is the first isochrone.
  3. From each point on that isochrone, the program tries the headings again, with the forecast for that position and the next time step.
  4. It prunes the new points and keeps the outer edge as the next isochrone.
  5. It repeats steps 3 and 4 until an isochrone reaches the destination.
  6. It traces back from the destination through the point on each earlier isochrone that led there. That chain of points is the route.

Without pruning, the number of points multiplies by the number of headings at every step and soon becomes too large to compute. The usual pruning divides the sea around the departure point into narrow sectors by bearing from the start, and keeps only the point farthest from the start in each sector. A point closer to the start than another in its sector has covered less distance in the same time, and paths from it seldom arrive first.

R. W. James of the US Navy Hydrographic Office published the isochrone method in 1957. It was a manual method, drawn on charts, for routing ships with wave forecasts. Later work adapted the method for computers. The modified isochrone method published by Hagiwara in 1989 computes each isochrone numerically and prunes it by sector.

Graph search and dynamic programming.

A second family of methods lays a fixed grid of points over the sea and treats it as a graph. Each point is a node, and each line between two neighboring nodes is an edge, one leg the boat could sail. The program computes how long each edge takes and searches for the chain of edges from start to destination with the least total time.

The forecast changes through the passage, so the time for an edge changes with the hour at which the boat starts it. This makes it a time-dependent shortest path problem. Methods based on Dijkstra's algorithm, a standard way to find the shortest path through a graph, work outward from the start and always extend the node reached earliest so far. A-star search adds an estimate of the time still to go, so it tries nodes toward the destination first. Dynamic programming splits the route into stages, such as bands of grid points or time steps, and finds the fastest way to every point in one stage from the results of the stage before, so it does not have to try every complete path.

The grid spacing and the number of neighbors each node connects to determine how finely the route can turn. With only the eight nearest neighbors, the heading can change only in steps of 45°, and a route at a small angle to the grid becomes a staircase. More neighbors and a finer grid give a smoother route and take more computing time. Routes from a graph search are often smoothed afterward, and the smoothed route has to be checked again against land and the other constraints.

Upwind and downwind.

Velocity made good (VMG) is the part of the boat's speed directed straight toward the wind, or straight away from it downwind. Upwind, the polars give the best VMG at the beat angle. Downwind in light wind, the best VMG is often on a broad reach.

When the destination is upwind, the fastest path sails at the beat angle on one tack and then the other, so the computed route zigzags. When the destination is downwind and the best VMG is on a broad reach, the route gybes back and forth across the direct line. When the forecast shows the wind shifting during the passage, the fastest route often heads toward the side the new wind will come from.

Each tack or gybe costs time while the boat turns and returns to speed. With no cost attached, the math can tack at every time step. Many programs add a time penalty for each tack or gybe, which gives fewer and longer legs, closer to the way a crew sails.

Currents and waves.

The polars give speed through the water. The program adds the current as a vector to the boat's speed and heading through the water to get its speed and course over ground. A fair current can make a longer path faster, and a foul current off a point or in a strait can slow a shorter one.

Polars assume flat water. In a sea the boat slows, most of all with the waves forward of the beam. Some programs reduce the polar speed according to the wave height and the wave direction relative to the boat's heading. Waves also add rolling and pitching, which the polars do not describe.

Time and comfort in the cost function.

A cost function is the quantity the program minimizes. The simplest is passage time. A cost function can add a penalty for each hour in conditions the crew wants to avoid, such as wind above a chosen speed, waves above a chosen height, beam seas, or strong motion. The weight on each penalty determines how much extra passage time the program accepts to avoid those conditions. With a low weight the route stays close to the fastest one. With a high weight it goes farther around the rough water and takes longer.

A hard constraint removes a path entirely, as land does. A penalty only adds cost, so the program can still route through a penalized area if every other path costs more. A wind limit can be given in true wind or in apparent wind, which the program computes from the true wind and the boat's speed and heading. Upwind the apparent wind exceeds the true wind, so a limit in apparent wind applies to more of the upwind hours.

Forecast uncertainty and ensemble routing.

A route computed on one deterministic forecast, a single model run with one outcome, assumes that forecast is correct at every position and hour. Forecast errors grow with lead time, and a small change in the forecast can make a large change in the optimal route. When a high or a low lies near the route, a small shift in its forecast position can move the fastest route from one side of it to the other.

An ensemble runs a model many times from slightly different starting conditions, and each run is an ensemble member. The guide to ensemble forecasts explains how the members spread apart further out in the forecast. There are two general ways to route on an ensemble.

  • Routing on each member. The program computes a route on every member and returns a set of routes and arrival times. When the routes cluster, the forecast for the passage is steadier. When they split into groups, for example some passing north of a high and some passing south of it, the forecast is uncertain about which side is faster, and the arrival times show the range of passage times.
  • Routing on a combined field. The program builds one forecast from the members, such as the ensemble mean, and computes a route on it. A combined field is smoother than any single member, so it can show a lower peak wind than some members show.

What the math leaves out.

A computed route is the result of a search over its inputs, and it is only as good as the polars, the forecast, and the constraints are. Squalls and local winds smaller than the forecast grid are missing from it, and so are sail changes and slower sailing at night. The program has no information about the crew's fatigue or seasickness, a torn sail, a failed autopilot, other ships, or a tide rip where the current runs against the waves. The skipper assesses the computed route against these, compares the actual conditions with the forecast once underway, and decides whether to sail the route or change it.

The weather router in WeatherWindow.AI.

WeatherWindow.AI's automated weather router computes two routes for a modelled passage on the same forecast, one with Time priority and one with Comfort priority. The first prioritizes an earlier arrival and the second searches for a more comfortable passage. Both run the boat's polars in the Multi-Dimensional Dead-Reckoning Engine on the weighted median of several ensemble forecasts. Wind strength and sea state are not limited by the search, and traffic separation schemes are not part of its data. Neither route is compared with a nautical chart, and either one can cross land, a reef, or shoal water. Check each route on your chart, and decide which one, if either, suits the boat and the crew.

Weather routing questions, answered.

What does a weather routing program calculate?

It calculates the path from the departure point to the destination with the least passage time, or with the lowest value of a cost the sailor defines. It combines the boat's polars with the forecast wind, waves, and current along each possible path, inside limits such as land and shallow water. The output is a route with a position and a time for each step.

What is an isochrone in weather routing?

An isochrone is a line of equal time. Every point on it is a position the boat could be at after the same number of hours from the start. A routing program builds one isochrone per time step, each outward from the one before, until one reaches the destination.

Why does a computed route zigzag upwind?

A sailboat cannot sail straight into the wind. Its best progress toward the wind is at the beat angle, which the polars give for each wind speed, so on a course to an upwind destination the boat sails at that angle on alternate tacks. Adding a time cost to every tack reduces the number of tacks.

How is ensemble routing different from routing on one forecast?

Routing on one deterministic forecast gives one route and assumes the forecast is right. Ensemble routing uses many members, either by computing a route on each one or by computing a route on a forecast combined from them. A set of routes on the members shows whether the fastest path holds across the possible outcomes or splits between two options.

Can I sail a computed route as it is?

A computed route is a mathematical result for its inputs. It does not include a squall smaller than the grid, the condition of the crew, or a gear failure. Check it against official nautical charts, the latest forecast, the surface analysis charts published by national met agencies, and the boat and crew you have, and then decide whether to follow it.

References and further reading.

  1. TU Delft. Weather Routing of (Sail-Assisted) Motor Vessels
  2. Chalmers University of Technology. Strategies to improve the isochrone algorithm for ship voyage optimisation
  3. Geoscientific Model Development. VISIR-I, small vessels, least-time nautical routes using wave forecasts
  4. The American Practical Navigator (Bowditch). Chapter 41 Weather Routing
  5. ECMWF. Section 5 Forecast Ensemble (ENS) - Rationale and Construction

WeatherWindow.AI is a decision-support tool, not a professional weather routing service. It describes the forecast conditions on your passage and can draw weather routes, but it does not choose your route or decide whether you leave. Any route it draws is not checked against nautical charts. It does not replace official marine forecasts, a professional weather router, or your judgment as master.