Crosswind calculator: crosswind and headwind components

Tafrob editorial team · Updated · 6 min read

Short answer

The crosswind component is the wind speed multiplied by the sine of the angle between the wind direction and the runway heading, and the headwind component uses the cosine. A 15 kt wind from 310 degrees on runway 27 makes an angle of 40 degrees, which gives about 9.6 kt of crosswind and 11.5 kt of headwind. A negative headwind value means a tailwind.

Runs in your browser. Training and planning aid only, not for operational use.

Key points

  • Crosswind equals speed times the sine of the wind angle; headwind equals speed times the cosine.
  • The angle is the difference between the wind direction and the runway heading, folded into the range minus 180 to plus 180 degrees.
  • A negative headwind value is a tailwind, and the sign of the crosswind tells whether the wind comes from the right or the left.
  • METAR and TAF winds are referenced to true north, while ATIS and ASOS or AWOS voice broadcasts are magnetic.
  • The limit for a given airplane comes from its flight manual, which this tool does not know.
A turboprop airliner landing in a crosswind
Photo: Ugur Ozden, CC BY-SA 2.0, via Wikimedia Commons

What the calculator does

The calculator on this page splits a wind into two parts relative to a runway: the component across the runway, called the crosswind, and the component along it, called the headwind or tailwind. It takes a wind direction in degrees, a wind speed, an optional gust speed and a runway heading in degrees, and returns the two components for the steady wind and for the gust. The speed unit is not converted: the components come out in the unit that was entered, usually knots.

The formula

The code first computes the angle between the wind and the runway heading. The expression is ((wind direction - runway heading + 540) % 360) - 180. The addition of 540 and the remainder by 360 fold any difference into the range of minus 180 to plus 180 degrees, so a wind from 350 degrees on runway 10 gives minus 20 degrees and not 340. A positive angle means the wind comes from the right of the runway heading, a negative angle from the left.

The two components follow from basic trigonometry:

  • crosswind = wind speed x sin(angle)
  • headwind = wind speed x cos(angle)

A headwind below zero is a tailwind. The sign of the crosswind gives the side: positive from the right, negative from the left. These are the standard projections of a vector onto two perpendicular axes, and the wind direction is the direction the wind blows from, as in a METAR (see the wind group page).

Sine and cosine reference

The fractions below come from the calculation and are useful for a quick estimate.

Angle Sine (crosswind fraction) Cosine (headwind fraction)
30 degrees 0.500 0.866
45 degrees 0.707 0.707
60 degrees 0.866 0.500
90 degrees 1.000 0.000

At 30 degrees half of the wind is across the runway. At 90 degrees the whole wind is across it and none of it helps.

A worked example

A wind of 310 degrees at 15 kt is reported with runway 27 in use (heading 270). The angle is 310 minus 270, which is 40 degrees, from the right. The crosswind is 15 x sin(40), which is 9.64 kt. The headwind is 15 x cos(40), which is 11.49 kt. If the report adds a gust to 25 kt, the same angle gives a gust crosswind of 16.07 kt and a gust headwind of 19.15 kt.

More cases from the same code, all on runway 27:

Wind Angle Crosswind Headwind
270 at 10 kt 0 degrees 0 kt 10 kt
300 at 20 kt 30 degrees 10.00 kt (from the right) 17.32 kt
220 at 15 kt minus 50 degrees 11.49 kt (from the left) 9.64 kt
180 at 20 kt minus 90 degrees 20.00 kt (from the left) 0 kt

For a tailwind case, a wind from 000 degrees at 10 kt on runway 18 gives an angle of 180 degrees, a crosswind of zero and a headwind of minus 10 kt, which is a 10 kt tailwind.

Which wind to use

The reference of the direction matters. The FAA Aviation Weather Handbook states that METAR and SPECI wind direction is relative to magnetic north in ATIS and in ASOS or AWOS radio broadcasts, and otherwise relative to true north. The AIM says the same for the written METAR, which is true. A runway number is based on the magnetic heading, so a true wind from a written report differs from the runway heading by the local magnetic variation. In many places this is a few degrees, which changes the result slightly, but in some regions it is large. The page note on tower winds is not backed by a source in this article; only ATIS and ASOS or AWOS voice are documented as magnetic. The details of the group are on the wind group page.

Variable winds need care. A report with VRB has no stable direction, so a single crosswind value is not meaningful; the variable wind page explains the coding. For gusts, the gusts page gives the criteria, and the FAA Aviation Weather Handbook describes a gust as a fluctuation with variations of 10 kt or more between peaks and lulls.

How to read the result

The crosswind pushes the aircraft sideways during takeoff and landing. The FAA Aviation Weather Handbook describes the hazard: the aircraft may drift off the side of the runway, side loads may act on the landing gear, and in extreme cases the gear may collapse. The headwind is helpful, because airplanes take off and land more efficiently into the wind. A tailwind has the opposite effect, with a longer takeoff roll and landing roll. The Handbook also warns that a variable wind or a sudden wind shift can turn a headwind into a crosswind or a tailwind. The gust result should be read next to the steady result, since gusts also cause airspeed fluctuations.

The pilot compares the components with the limits of the airplane and of the operator. Those values are not in this tool.

Limits of the method

  • The calculation is geometric. It does not model turbulence, wind variation along the approach, or terrain effects.
  • The wind of a report is an average over a short period and applies at the station sensor, not along the runway.
  • True and magnetic references are not converted.
  • Several runways need separate entries.
  • No maximum crosswind is stated by this tool. The limit comes from the airplane flight manual.

A schematic report

METAR LXXX 190750Z 31015G25KT 9999 FEW040 12/05 Q1015

With runway 27 in use, the wind of 15 kt gusting 25 kt from 310 degrees gives a steady crosswind of 9.6 kt and a gust crosswind of 16.1 kt, with headwinds of 11.5 kt and 19.2 kt. The station code and the report are schematic. The report data on this page is not live.

In real reports

Winds in real reports are given in tens of degrees and rounded, so a report of 310 degrees stands for an average that may lie a few degrees either way. Gust groups, variable direction groups such as 250V330 and calm winds all change how the result must be read. A report of 00000KT gives no crosswind, and a VRB wind gives no usable direction. At airports with several runways, the runway in use may differ from the one with the lowest crosswind. The decoded wind of a report can be seen with the METAR decoder, and the unit conventions are covered on the units page.

Method and limits

The formulas were read from the code of the calculator (the angle fold, the sine and the cosine) and the results above were obtained by running that code. The projection is standard trigonometry and is not attributed to a single document. The FAA Aviation Weather Handbook (FAA-H-8083-28A) was used for the magnetic and true wind reference, the gust definition and the hazard descriptions of crosswind, tailwind and wind shift. The AIM chapter 7 section 1 was used for the METAR wind reference. No source was found for a maximum demonstrated crosswind or for a gust factor rule, and neither is stated here: the limit for an airplane belongs to its flight manual. The assertion in the page note that tower winds are magnetic was not verified in the documents read. The site is a learning resource and is not an operational weather source.

Source code of this tool (MIT)
// Tafrob calculators - pure functions, MIT licence (c) Tafrob.
// Every formula is documented on the tool page with its source.

const rad = (d: number) => (d * Math.PI) / 180;

/** Wind components on a runway. dir/heading in degrees (same reference: both true or both magnetic). */
export function windComponents(windDir: number, speed: number, runwayHeading: number) {
  const angle = ((windDir - runwayHeading + 540) % 360) - 180; // -180..180, + = from the right
  const cross = speed * Math.sin(rad(angle));
  const head = speed * Math.cos(rad(angle));
  return { angle, cross, head }; // cross > 0: from the right; head < 0: tailwind
}

/** Saturation vapour pressure (hPa), Magnus formula with Alduchov & Eskridge (1996) coefficients. */
export const satVap = (tC: number) => 6.1094 * Math.exp((17.625 * tC) / (tC + 243.04));

/** Relative humidity (%) from temperature and dew point (deg C). */
export const relHumidity = (tC: number, tdC: number) => (100 * satVap(tdC)) / satVap(tC);

/** Dew point (deg C) from temperature (deg C) and relative humidity (%). */
export function dewPoint(tC: number, rh: number) {
  const g = Math.log(rh / 100) + (17.625 * tC) / (243.04 + tC);
  return (243.04 * g) / (17.625 - g);
}

/** Convective cloud base estimate above ground (ft) from the temperature/dew point spread (deg C). */
export const cloudBaseFt = (tC: number, tdC: number) => ((tC - tdC) / 2.5) * 1000;

/** Pressure altitude (ft) from field elevation (ft) and altimeter setting (inHg). FAA rule: 1,000 ft per inHg. */
export const pressureAltitude = (elevFt: number, altInHg: number) => elevFt + (29.92 - altInHg) * 1000;

/** ISA temperature (deg C) at a pressure altitude (ft). */
export const isaTemp = (paFt: number) => 15 - (1.98 * paFt) / 1000;

/** Station pressure (inHg) from altimeter setting (inHg) and elevation (m), NWS formula. */
export const stationPressure = (altInHg: number, elevM: number) => altInHg * Math.pow((288 - 0.0065 * elevM) / 288, 5.2561);

/**
 * Density altitude (ft), NWS method (WFO El Paso): station pressure and virtual temperature (humidity included).
 * e = 6.11 * 10^(7.5 * Td / (237.3 + Td)) hPa; DA = 145366 * (1 - (17.326 * P / Tv)^0.235), P in inHg, Tv in degrees Rankine.
 * Same constants as the NWS page, so results can be checked against it (a dry ISA sea level case gives about 18 ft, not 0).
 */
export function densityAltitude(elevFt: number, altInHg: number, tC: number, tdC?: number) {
  const p = stationPressure(altInHg, elevFt * 0.3048); // inHg
  const pHpa = p * 33.8639;
  const e = tdC === undefined ? 0 : 6.11 * Math.pow(10, (7.5 * tdC) / (237.3 + tdC)); // NWS vapour pressure
  const tK = tC + 273.15;
  const tvK = tK / (1 - (e / pHpa) * (1 - 0.622));
  const tvR = tvK * 1.8;
  const da = 145366 * (1 - Math.pow((17.326 * p) / tvR, 0.235));
  const pa = pressureAltitude(elevFt, altInHg);
  const thumb = pa + 120 * (tC - isaTemp(pa)); // rule of thumb: 120 ft per deg C above ISA
  return { da, pa, thumb, isa: isaTemp(pa), stationInHg: p };
}

/** Pressure conversions. */
export const HPA_PER_INHG = 33.8639;
export const HPA_PER_MMHG = 1.333224;
export const hpaToInhg = (h: number) => h / HPA_PER_INHG;
export const inhgToHpa = (i: number) => i * HPA_PER_INHG;
/** METAR A group: hundredths of inHg rounded down (FMH-1 11.5.1); the epsilon absorbs float error (29.92 -> 2991.9999...). */
export const aGroup = (hpa: number) => 'A' + String(Math.floor(hpaToInhg(hpa) * 100 + 1e-6)).padStart(4, '0');
/** Pressure altitude offset (ft) from 1013.25 hPa with the AIM rule of 1,000 ft per inHg (about 29.5 ft per hPa). */
export const pressureOffsetFt = (hpa: number) => ((1013.25 - hpa) / HPA_PER_INHG) * 1000;

export type Category = 'VFR' | 'MVFR' | 'IFR' | 'LIFR';
/** US flight category (NWS / Aviation Weather Center definitions). ceiling in ft AGL (Infinity if none), visibility in statute miles. */
export function flightCategory(ceilingFt: number, visSm: number): { cat: Category; byCeiling: Category; byVis: Category } {
  const c: Category = ceilingFt < 500 ? 'LIFR' : ceilingFt < 1000 ? 'IFR' : ceilingFt <= 3000 ? 'MVFR' : 'VFR';
  const v: Category = visSm < 1 ? 'LIFR' : visSm < 3 ? 'IFR' : visSm <= 5 ? 'MVFR' : 'VFR';
  const rank: Category[] = ['LIFR', 'IFR', 'MVFR', 'VFR'];
  const cat = rank[Math.min(rank.indexOf(c), rank.indexOf(v))];
  return { cat, byCeiling: c, byVis: v };
}

/** Speed conversions (from knots). */
export const KT = { mps: 0.514444, kmh: 1.852, mph: 1.150779 };

/** Interpret a METAR/TAF day-time group DDHHMMZ relative to a reference date (UTC). */
export function dayTimeGroup(group: string, ref = new Date()) {
  const m = group.trim().toUpperCase().match(/^(\d{2})(\d{2})(\d{2})Z?$/);
  if (!m) return null;
  const [d, h, mi] = [Number(m[1]), Number(m[2]), Number(m[3])];
  if (d < 1 || d > 31 || h > 23 || mi > 59) return null;
  // Choose the month that puts the date closest to the reference date.
  let best: Date | null = null;
  for (const off of [-1, 0, 1]) {
    const c = new Date(Date.UTC(ref.getUTCFullYear(), ref.getUTCMonth() + off, d, h, mi));
    if (c.getUTCDate() !== d) continue;
    if (!best || Math.abs(+c - +ref) < Math.abs(+best - +ref)) best = c;
  }
  return best;
}

Training and reference only. For flight planning, always use official briefing sources (your national weather service, AIS or approved provider).

Frequently asked questions

How is the crosswind component calculated?

Multiply the wind speed by the sine of the angle between the wind direction and the runway heading. For a 20 kt wind at 30 degrees, the sine is 0.5, so the crosswind is 10 kt. The headwind uses the cosine, which is 0.866 at 30 degrees and gives 17.3 kt.

Is the wind in a METAR true or magnetic?

The FAA Aviation Weather Handbook states that METAR wind direction is relative to magnetic north in ATIS and in ASOS or AWOS voice broadcasts, and otherwise relative to true north. A written METAR is therefore true. Runway numbers are magnetic, so a correction is needed when a written report is used.

What does a negative headwind mean?

It means the wind has a component from behind, which is a tailwind. For a wind from 000 degrees at 10 kt and a runway heading of 180 degrees, the angle is 180 degrees, the headwind is minus 10 kt, so the tailwind is 10 kt. A tailwind lengthens the takeoff and landing rolls.

How do gusts change the calculation?

Each speed can be entered separately. With a wind from 310 degrees at 15 kt gusting 25 kt on runway 27, the crosswind is 9.6 kt in the steady wind and 16.1 kt in the gust. The gust value is the one that shows the peak side load.

What is the maximum crosswind for my airplane?

The limit depends on the airplane and is found in its flight manual or operating handbook. This tool does not hold such values and does not state a general rule. The FAA Aviation Weather Handbook only notes that pilots of aircraft with lower crosswind thresholds are the most exposed to this hazard.

Sources

  1. Federal Aviation Administration (2024). Aviation Weather Handbook (FAA-H-8083-28A)
  2. Federal Aviation Administration (2025). Aeronautical Information Manual, chapter 7, section 1
  3. World Meteorological Organization (2025). Aerodrome Reports and Forecasts, A Users' Handbook to the Codes (WMO-No. 782)
  4. GitHub, Alexander Harding. metar-taf-parser (source code and documentation)