Introduction

Seasonal animal migrations have evolved across taxa at spatial scales spanning meters to continents1. A critical yet unresolved factor for migratory populations is how inexperienced (hereafter, naïve) individuals can perform inaugural migrations through unfamiliar habitats in unpredictable conditions. Experienced migrants are thought to perform true navigation, i.e., access a map sense to estimate the direction to migratory destinations2,3,4. Among migratory aquatic and terrestrial taxa, migration routes are often transmitted culturally by experienced cohorts, through collective and social cues5,6. However, many naïve airborne migrants complete their journeys to population-specific remote destinations (hereafter, goal areas) independently2,7. Among long-distance migrants, this is typically achieved in sequences of directed daily or nightly flights (hereafter, flight-steps), interspersed by periods of extended stopover (hereafter, stopover)7,8,9. Independently travelling naïve migrants are thought to accomplish such feats by following inherited migratory directions, re-determined at the onset of each flight-step using various geophysical migratory compasses2,10. However, the extent to which such compass courses (often termed clock and compass migration in the literature) can reliably reproduce observed migration patterns remains uncertain11,12,13,14.

Based mainly on captive individuals, naïve but migration-ready birds and insects have been shown to orient consistently relative to both geomagnetic and celestial directional cues2,10,15. For example, migrating birds can innately identify the North–South geomagnetic axis, and distinguish magnetic North (N) from South (S) using geomagnetic inclination (the vertical tilt of the geomagnetic field, downward in the N Hemisphere). Unlike with the geomagnetic compass, the ability to maintain preferred directions relative to the sun and stars needs to be learned prior to migration6,7. The avian star compass identifies geographic N or S via the centre of celestial rotation (15° per hour clockwise), but does not respond to natural or experimental clock-shifts, i.e., is not time-compensated16,17. However, even outside the realm of migration, many insects18,19 and birds20,21 use a time-compensated sun compass, achieved by tracking the sun’s azimuth angle, i.e., the horizontal projection of the sun’s daily arc in the sky (earlier theories proposing bird navigation based on the sun’s altitude are not supported16,21). Time-compensation based on sun azimuth would involve differential angular rates of adjustment throughout the day (e.g., is fastest at noon), and also vary across seasons and latitudes22,23. However, solar cues can potentially function as a time-limited compass, i.e., across shorter periods within the day20. A potential advantage of time-compensation close to sunrise or sunset is that the sun’s azimuth then moves across the horizon at nearly the same angular speed throughout the year (i.e., only varies with latitude)22. With the sun and stars often being obscured by weather or topography, it is perhaps unsurprising that many airborne migrants can also orient using patterns of polarized light24,25, which is less obscured by clouds15,26. The bands of maximal intensity of polarized light are in fact perpendicular to sun azimuth during both sunrise and sunset, which if averaged has been proposed as a way for migrants to identify the geographic N–S axis24,27.

Given the diversity and complexity among compass cues, together with confounding factors such as wind and topography7,9,28,29, it is not surprising that little is known regarding which cues are used in flight, or whether cue use varies across entire routes2,30,31. Prior to departure, night-migratory songbirds seem to prioritize one (hereafter, primary) compass system to determine flight-step headings, sometimes transferred to a second, in-flight compass10,30,31. Cue-conflict experiments suggest various contingencies and hierarchies involving calibration between compasses, but often prioritization of celestial cues at twilight, particularly among North American migrants10,15,31. The choice of primary compass can result in substantially different compass courses, with five main classes proposed: geographic loxodromes, geomagnetic loxodromes, magnetoclinic courses, fixed sun compass and time-compensated sun compass courses. Geographic loxodromes follow constant headings relative to the geographic N–S axis, which is potentially identifiable using either a primary star compass16,30 or by averaging polarized light cues at sunrise and sunset24,27. Geomagnetic loxodromes follow constant headings relative to the proximate geomagnetic N–S axis, resulting in an offset to geographic headings according to proximate geomagnetic declination10,32. Magnetoclinic courses shift gradually and increasingly towards the South (N in the S Hemisphere), by maintaining a fixed (transverse) projection of proximate geomagnetic inclination en route33,34. With sun compass courses, flight-step headings are determined relative to proximate sun azimuth, here focused on sunset courses (sunrise courses for day-migrating species)15,34. Fixed sun compass courses follow a constant heading relative to sunset azimuth, resulting in less consistent orientation shifts with date and location, e.g., asymmetrically between Eastward and Westward courses15,34. A migrant following a time-compensated sun compass (TCSC) course also orients relative to proximate sunset azimuth, but after crossing longitudes, its heading on the subsequent flight-step becomes clock-shifted22. This plausibly occurs between consecutive flight-steps (i.e., without extended stopovers), given the avian inner-clock apparently requires several days to adjust21. TCSC sunrise or sunset courses shift more consistently Southwards (Northwards in the S Hemisphere) compared with fixed sun compass courses, resulting in close to great circle trajectories22,35.

The extent to which compass courses can result in successful migration routes remains an open question. Central to this question is whether cue perception, compass headings and resultant flight-step directions are sufficiently precise, accounting for overall directional errors being reduced over many flight-steps, known as a many-wrongs effect5,36,37 (we may assume that population-mean migratory headings are accurate, i.e., maximize the probability of arrival at goal areas). Among the avian compasses, the magnetic compass has been estimated to be as precise as 0.5° 38,39, and sun compass within 5° 21, with variability of night-migratory headings aloft to be 20°–30° 40,41. However, recoveries of ringed juvenile songbirds suggest upwards of ~50° directional variability among flight-steps (circular length 0.665)36. Simulated fixed-heading (loxodrome) migration on a plane indicates that such variability is only compatible with migration along very broad fronts12,14,36. Some directional variability among recovered migrants may at least in part be negotiable independently of a compass-course process42 (e.g., post-fledging dispersal43, regional-scale stopover movements44, and responses to wind and topography9,28,41). Nonetheless, migratory tracking data reveal a more diverse picture than constant-heading loxodrome movements, often featuring narrow movement corridors, and both gradually and sharply direction-changing routes11,14. While simulations of known bird-migration routes on the sphere often resemble direction-shifting TCSC or magnetoclinic courses33,35, their relative feasibility has been debated34,45,46, and their robustness to errors remains untested. Moreover, the modulation of orientation errors by spherical-geometry effects remains unquantified for compass-based animal movements36,47.

One way to improve the robustness of compass-based movement would be if animals possessed a self-correction mechanism. Remarkably, some naïve bird migrants have been shown to adjust their orientation correctively following either natural or experimental displacement42,48,49,50. The ability to correct orientation following longitudinal displacements is a hallmark of true navigation2,3, but could also be achievable if migrants tracked configurations of stars16,17 or the sun16 in a time-compensated way (also termed pseudo-navigation42). While such corrections are thought to be small for migration-relevant displacements16,42, their cumulative effect over many flight-steps and entire routes have not been assessed, nor have they been quantified regarding time-compensated responses to sun azimuth.

Here we provide a modelling framework to assess factors governing the performance and robustness of airborne migration for compass-based movement on a sphere. For simplicity and interpretability, we focus on compass courses based on a single inherited or imprinted heading. We quantified migratory performance as fractional successful arrival within goal areas and assessed robustness among compass courses both algebraically as sensitivity to the error between successive flight-steps, and by performance across entire routes. For the latter, we developed a spatiotemporal migration model to simulate each compass course over a broad range of errors, for both a generic migrant globally and for diverse airborne migratory species and routes incorporating dynamic geomagnetic data51. To facilitate the algebraic and global generic-migrant simulations, we additionally modelled geomagnetic courses for a dipole Earth, where inclination varies solely with magnetic latitude, which explains 90% of the Earth’s magnetic variation32. To ensure consistent sun compass trajectories, we assumed that flight-step headings on commencement of migration were imprinted from inherited geographic or geomagnetic headings2,10,30. We also extended existing formulations of TCSC to assess critical assumptions regarding how inner clocks are reset and courses are maintained in variable flight and stopover schedules. Regarding orientation errors, in addition to considering directional precision among daily or nightly flight-steps, with sources of error implicit, we also considered biologically relevant sources of error within flight-steps, quantified by compass precision (governing initial cue detection, possible cue transfers to a secondary compass, and in-flight cue maintenance), within-flight drift (through compass bias or wind), and between-individual variability in inherited headings12. Finally, based on our formulations and species simulations, we identified flight capacity and route-geometric factors affecting compass course performance on the sphere and assessed their relative effect among compass courses and migration routes using nonlinear regression and AICc model selection52.

Results

Table 1 lists terms relating to stepwise movement, compass cues, orientation precision and proposed compass courses (see also the “Methods” section and Supplementary Information). Before describing sensitivity and performance among compass courses, we briefly outline stepwise movement on a sphere, modelling of circular headings and error, and expected migratory performance assuming a planar Earth, including the effect of precision among and within flight-steps.

Table 1 Definitions of terms describing stepwise movement, among and within-step precision, and geophysical orientation cues.

Stepwise movement on a sphere

For a sequence of N daily or nightly flight-steps (i = 0,…, N−1) with corresponding flight-step directions, αi, clockwise relative to geographic S (anticlockwise to N in the S Hemisphere), the latitude, i+1, and longitude, λi+1, following each flight-step can be approximated as

$${{{\phi }}}_{i+1}={{{\phi }}}_{i}-{R}_{{{\mathrm {step}}}}{{\cos }}{\alpha }_{i},$$
(1)
$${\lambda }_{i+1}={\lambda }_{i}-{R}_{{{\mathrm {step}}}}{{\sin }}{\alpha }_{i}/{{\cos }}{{{\phi }}}_{i}$$
(2)

where Rstep is the flight-step distance (with all arguments in radians). A key spherical-geometry factor is an initial latitude, 0, which iteratively affects progress in longitude (Eq. (2)) and, through the cosine factor in the denominator, magnifies the effect of any orientation errors disproportionately at high latitudes.

Modelling circular headings and error

Throughout the study, we determined headings following a von Mises distribution, the circular equivalent to the normal distribution, with angular precision quantified by the von Mises concentration, κ53. To facilitate interpretation, we also describe compass and flight-step precision in degrees, as well as variability in inherited headings, according to \(\sigma =1/\sqrt{\kappa }\), which closely resembles standard angular deviation for σ ≤ 30° (κ > 3.7, circular length > 0.85; see Supplementary Fig. 1 and Note 1)53. For error scenarios with multiple components, we also describe directional precision among flight-steps using the normal approximation \({\sigma }_{A+B}=\sqrt{{\sigma }_{A}^{2}+{\sigma }_{B}^{2}}\) (which also becomes poorer for σ > 30°; see Supplementary Fig. 1 and Note 1).

Migratory performance assuming a planar Earth

Figure 1a illustrates stepwise compass-based movement across a distance Rmig to a migratory goal area of radius Rgoal. The probability of successful arrival will increase with increasing directional precision among flight-steps, and with two population and route specific factors: (1) goal-area breadth, quantified as the ratio of goal radius to migration distance, \({\beta =R}_{{{\mathrm {goal}}}}/{R}_{{{\mathrm {mig}}}}\), and (2) and following the many wrongs principle, with increasing number of required flight-steps, which in the error-free case we term N0. In the normal limit (see the “Methods” section), for a given directional precision among flight-steps, performance among routes will vary according to what we term the length-adjusted goal breadth

$${\beta }_{{{\mathrm {adj}}}}=\sqrt{{N}_{0}}{R}_{{{\mathrm {goal}}}}/{R}_{{{\mathrm {mig}}}}.$$
(3)
Fig. 1: Compass-based movement, precision between and within flight-steps.
figure 1

a Schematic of N migratory flight-steps (orange arrows), based on a single preferred heading (dashed black line), spanning a distance Rmig to a migratory destination (“goal area”, with radius Rgoal). For a given and sufficiently high precision among flight-steps, and ignoring spherical-geometry effects, the probability of successful arrival increases with goal area, the number of required error-free flight-steps, N0, but decreases with migration distance (inset and Eq. (3)). b Within-flight compass precision based on a single (e.g., geomagnetic) cue. The expected initial error in cue detection (angle between dashed orange and black lines) will on average be offset by repeated, e.g., hourly cue maintenance within flight-steps (solid orange line and diamond shapes). c Contrastingly, with transfer to a secondary compass (dashed-purple line, e.g., star compass), the expected flight-step error will exceed cue-detection errors, regardless of cue maintenance (solid purple line and yellow hexagons). Bird icon from http://www.dreamstime.com (ID 16983354).

Precision among and within flight-steps

If we consider a single flight-step based on a single compass cue, higher frequency of in-flight cue maintenance will reduce expected flight-step errors in a many-wrongs fashion (Fig. 1b). This increased directional precision comes at the expense of flight-step distance, but not extremely so for cue-maintenance precision within ~60° (Supplementary Fig. 1b, c). Contrastingly, for flight-steps involving cue transfer to a second compass, more frequent cue maintenance does not make up for initial cue detection and transfer errors (Fig. 1c, and see Supplementary Note 1). Therefore, within a single nocturnal flight-step, assuming equivalent precision and availability among cues, non-transferred geomagnetic or star-compass headings are relatively more precise compared with nightly flights transferred from a sun compass.

Compass course formulations and sensitivity

In the “Methods” section, we formulate flight-step headings for each compass course (see also Table 1), including magnetoclinic courses in a geomagnetic dipole. To assess sun-compass sensitivity algebraically, and also to improve computational efficiency, we used an algebraic expression for sunset azimuth as a function of latitude and day of the year (Eq. (9)). The heuristics of TCSC courses and self-correction are illustrated in Fig. 2. Following error-free headings, a migrant’s subsequent heading will shift oppositely to its clock-shift, creating an increasingly Southward trajectory (Northward in the S Hemisphere)34. Following an imprecise heading and ensuing longitude error, ∆λ, the difference in clock shift compared with the error-free case will tend to counteract the previous error. The expected self-correcting offset in heading, \(\varDelta \bar{{{{{{\rm{\alpha }}}}}}}\), follows the same relationship as with TCSC courses in the error-free case (see the “Methods” section):

$$\triangle \bar{{{{{{\rm{\alpha }}}}}}}\cong \triangle {{{{{\rm{\lambda }}}}}}{{\sin }}{{\phi }}$$
(4)
Fig. 2: Time-compensated sun compass (TCSC) headings and self-correction.
figure 2

A TCSC migrant clock-synchronized to local conditions (top) maintains its preferred direction (solid black arrow) by adjusting its heading relative to the daily clockwise rotation in sun azimuth (here at sunset, solid red arrow). Following an error-free flight-step (lower left), the longitudinally displaced migrant will be clock-shifted relative to local time. Here, the clock-accelerated shift results in an over-compensation to proximate sun azimuth, i.e., counter-clockwise TCSC offset (dashed red arrow), hence increasingly Southward heading (dashed black arrow). If the migrant’s initial heading is imprecise (dot-dashed grey line), its longitudinal displacement will lead to a contrasting clock-shift. Here, the clock-lagged migrant (lower right) will under-compensate relative to proximate sun azimuth, resulting in a clockwise offset (dashed red arrow) and hence a self-corrected heading (dashed black line). Between-step shifts in proximate sunset azimuth become biologically relevant at multi-day and multi-step scales (Fig. 7). Images from www.dreamstime.com and www.flaticon.com.

To assess the robustness of TCSC courses to variable migratory schedules, we additionally formulate in the “Methods” section (and illustrated below) the effects of changes in latitude, clock-resets, extended stopovers and angular speed of sun azimuth.

The sensitivity of successive headings to orientation errors contrasted strongly among compass courses, particularly at high latitudes and with significantly Eastward or Westward flight directions. The heat maps in Fig. 3 depict expected percentile growth (red) or self-correction (blue) of directional errors between successive flight-steps, with the arrows depicting how (error-free) headings for each compass course shift with latitude along prototypical routes. Per definition, preferred geographic loxodrome headings do not depend on previous headings, resulting in no expected growth or correction in error (Fig. 3a, Eq. (5)). This also holds for geomagnetic loxodrome headings in a dipole field, relative to geomagnetic axes (Eq. (6)). Contrastingly, the latitude-dependence of magnetoclinic headings (Eqs. (7) and (8)) renders them inter-dependent, and leads to extremely high sensitivity for virtually any non-Southerly heading (Fig. 3b, Eq. (13)). Fixed sun compass headings remain largely insensitive to errors, but at high latitudes will iteratively grow or self-correct (up to ~10°% in the sub-Arctic), depending on whether East or West oriented, and before or after the fall equinox (Fig. 3c, d, Eq. (14)). Sensitivity in TCSC headings is similarly East–West antisymmetric about the equinox (Fig. 3e, f), but their self-correcting nature (Fig. 2) further reduces expected subsequent errors, with 5–25% self-correction at mid to high latitudes and over a broad range of directions (Eq. (15)), into which headings (blue arrows) moreover tend to converge. While the degree of TCSC self-correction remains small away from polar latitudes (as shown in Fig. 2, roughly to scale), subsequent steps will continue to self-correct for any remaining discrepancies in longitude until inner clocks are reset.

Fig. 3: Contrasting sensitivity in headings among compass courses.
figure 3

Sensitivity between flight-step headings, quantified as percentage growth of small errors between successive headings (colour scales on right), as a function of current heading (clockwise from South) and latitude (geomagnetic latitude for geomagnetic courses), for a constant-heading geographic loxodromes, or equivalently geomagnetic loxodromes in a geomagnetic dipole Earth, b magnetoclinic courses in a geomagnetic dipole, c fixed sun compass courses on August 1 and d October 1, and e time-compensated sun compass (TCSC) courses on August 1 and f October 1. For positive (yellow to red coloured) values of sensitivity, expected errors in the successive headings will grow iteratively, whereas, for negative (white to blue coloured) values, expected headings are self-correcting. Blue arrows depict error-free headings for travel from (solid lines) 50°N–15°N across 10° in longitude, and (dashed lines) 65°N–0°N across 90° in longitude. For all simulations, flight-step distances were 360 km. In cf, regions without sunset or sunrise (poleward of ~72° on August 1 and ~87° on October 1, respectively) are not depicted.

Simulation of migration routes

Using our migration model, we derived initial headings maximizing performance (successful arrival) for each modelled migratory population and error scenario. We considered both directional precision among flight-steps up to 60° (κ = 0.9, circular length 0.4) and biologically relevant scenarios resulting in a similar range in directional precision: 0°–60° compass precision (governing initial cue detection, cue transfers and cue maintenance), 0°–20° within-flight drift and 0°–10° between-individual variability in inherited headings. For illustrative purposes, trajectories are depicted for default error scenarios with 20° directional precision among flight-steps (κ = 8.2, circular length = 0.94), and for a biologically relevant error scenario with 15° compass precision and drift (κ = 14.6, circular length = 0.97) and 2.5° between-individual variability (κ = 525, circular length = 0.999). The default biologically relevant scenario results in directional precision among flight-steps of ~28° (κ = 4.2, circular length = 0.87) for cue-transferred and ~16° (κ = 12.8, circular length = 0.96) for non-transferred courses.

We simulated compass courses for seven night-migratory bird species, the Nathusius bat (Pipistrellus nathusii) and the daytime-migrant monarch butterfly (Danaus plexippus). Species are listed in Table 2 in increasing order of expected performance (length-adjusted goal breadth, Eq. (3)), together with other key model parameters including migration distance, goal area, migration period, great circle headings, stopover durations and travel speeds. For the night-migratory species, TCSC courses are cue-transferred and geographic loxodrome courses represent non-transferred star compass courses. For the daytime-migrant monarch butterfly, sun compass courses are non-transferred but geographic loxodromes assumed to be cue-transferred (from a star compass or daily-averaged polarized-light).

Table 2 Model parameters of the species compass course simulations.

Compass-course performance among species varied overall as expected relative to length-adjusted goal-breadth, as illustrated in Fig. 4a for 20° precision among flight-steps. TCSC courses always performed best, with geomagnetic loxodrome courses being less consistent, and magnetoclinic courses performing overall worst. However, when accounting for precision within flight-steps, cue-transfer errors diminished the relative advantage of nocturnal TCSC courses. This is illustrated in Fig. 4b–f for five species with the default biologically relevant error scenario (including 15° compass precision), with the remaining species in Supplementary Fig. 2. With this scenario, TCSC courses outperform loxodromes for the routes requiring the largest number of flight-steps, i.e., the willow warbler (Phylloscopus trochilus), grey-cheeked thrush (Catharus minimus) and monarch butterfly, and also most closely matches their known routes (grey arrows). For the ca. 14,000 km willow warbler route and nearly West–East common rosefinch (Carpodacus erythrinus) routes, the default-error magnetoclinic courses were virtually infeasible despite their relatively high directional precision (~16°) among flight-steps. Cue-transferred courses are presented here based on a nocturnal star compass, but transfers to a geomagnetic in-flight compass perform overall very similarly (Supplementary Fig. 3).

Fig. 4: Diverse compass course performance among species and migration routes.
figure 4

a Compass-course performance along known routes of nine airborne migrant species (Table 2) vs. length-adjusted goal breadth (Eq. (3)). Illustrated here based on 20° precision among flight-steps, with filled symbols representing (left-right) monarch butterfly, common rosefinch, Kirtland’s warbler (Setophaga kirtlandii), willow warbler and grey-cheeked thrush, and open symbols representing the other species (depicted in Supplementary Fig. 2). Purple hexagons represent geographic loxodromes, orange diamonds geomagnetic loxodromes, brown triangles magnetoclinic courses, blue squares fixed sun compass courses and green circles time-compensated sun compass (TCSC) courses. bf Randomly sampled trajectories (from 10,000 modelled individuals) with route-optimal population-mean headings for the above species, with colours and symbols representing compass-course as in a, for the above-named species (with the others depicted in Supplementary Fig. 2), assuming biologically relevant variability including 15° compass precision, drift, and 2.5° between-individual variability in inherited headings (see text). The top row depicts known species routes (grey arrows) between natal grounds (black hexagons) and natural goal areas (open circles), with straight lines appearing as great circles in the stereographic projection. Performance (percentage arrival) and, where applicable, also cue-transferred courses (“T”) are depicted above each panel. Photos by b D. Descousens (https://creativecommons.org/licenses/by-sa/2.0), c I. Shah (https://creativecommons.org/licenses/by-sa/4.0), d B. Majoros (https://creativecommons.org/licenses/by-sa/3.0/), e HS and f A. D’Entrement.

Patterns and hierarchies in performance among compass courses were similar for the global simulations of a generic migrant to a goal with 500-km radius in a geomagnetic dipole (Fig. 5). For biologically relevant error scenarios with 30° or better compass precision (κ > 3.7, circular length > 0.85), TCSC courses were feasible across longer longitudinal migration distances compared with other courses (especially magnetoclinic courses; Fig. 5a), and also outperformed fixed sun compass and magnetoclinic routes across their limited ranges (Fig. 5b–e). However, particularly for migration at mid-latitudes, cue-transferred TCSC courses lose their self-correcting advantage relative to non-transferred loxodromes, which they only outperform across longer-distance routes and with compass precision within ~15° (Fig. 5d).

Fig. 5: Global migration ranges and compass-course performance for a generic migrant.
figure 5

Feasible longitude migration distances and relative performance among compass courses based on simulations for a generic nocturnally migrating species in a geomagnetic dipole Earth, with biologically relevant error (0°–60° magnitudes in compass precision, and 15° drift). a Maximal longitudinal migration distances (with at least 25% success of arriving within 500 km of a goal) vs. compass precision (both in degrees), with line colours among compass courses as in Fig. 4 (orange: geomagnetic loxodrome, brown: magnetoclinic, blue: cue-transferred fixed and green: cue-transferred TCSC courses). Solid lines represent migration between 45°N–25°N and dotted lines between 65°N–0°N. b and c Performance among compass courses with compass precisions of b 15° and c 30°, with solid lines representing migration between 45°N and 25°N and dotted lines between 65°N–0°N. d and e Violin plots, with violin widths depicting distributions of percentage gain with TCSC relative to other courses among all feasible longitudinal distances for routes between 45°N and 25°N and between 65°N and 0°N, with colours matching a, and for compass precisions of (d) 15° and (e) 30°.

Uncertainty analysis of migration parameters and formulation

Compass course performance can vary widely depending on estimated model parameters12,14. Figure 6 illustrates the diverse effects of estimated between-individual variability (up to 10°, i.e., κ = 33, circular length = 0.985), within-flight drift and goal radius (100–1100 km) on migratory performance for the nearly N–S migration (Fig. 6a) of Finnish-breeding marsh warblers (Acrocephalus palustris) to East Africa12,14. Simulations were performed as per Table 2 and Supplementary Fig. 2, but with fixed migratory schedules. In the absence of drift effects (Fig. 6b), non-transferred geomagnetic loxodromes (orange line) and geographic loxodromes (purple line) outperform cue-transferred sun compass courses (dashed green line), unless the star compass is unavailable on departure (e.g., due to clouds), necessitating a cue transfer (dashed purple line). Cue-transferred TCSC courses were however relatively less affected by 20° within-flight drift (Fig. 6c), even outperforming non-transferred loxodromes for compass precision within ca. 15° (κ = 14.6, circular length = 0.97). Figure 6d depicts the effects of goal radius (km) and within-individual variability on the performance of geographical loxodromes with 20° compass precision in the absence of drift. Figure 6e, f illustrate that the performance gain with TCSC courses over geographic loxodromes is larger with larger between-individual variability, and for larger goal areas, particularly in presence of (20°) within-flight drift (Fig. 6f).

Fig. 6: Effects of in-flight drift, individual variability and goal area on predicted marsh warbler migration.
figure 6

a Marsh warbler (Acrocephalus palustris) migration route between breeding grounds in Finland and East Africa (grey arrow in stereographic map), with default 500-km goal radius (open circle). b Performance versus compass precision in the absence of drift for geomagnetic loxodromes (orange line), geographic loxodromes (purple line), cue-transferred geographic loxodromes (dashed purple line, when the star compass is unavailable on departure) and cue-transferred sun compass courses (dashed green line). c As in b, except with 20° within-flight drift. d Performance of geographical loxodromes (e.g., star compass) in the absence of drift as a function of goal radius and between-individual variability in inherited headings, based on 20° compass precision. e As in d, but depicting the relative performance gain with TCSC (%) over geographic loxodromes. f As in e, but with 20° within-flight drift. Photo by M. Szczepanek (https://creativecommons.org/licenses/by-sa/3.0).

The feasibility of TCSC courses across broad latitudinal distances depends on two critical assumptions22 (see the “Methods” section): that (1) the temporal rate of time-compensated orientation adjustments are updated and retained during extended stopover periods, and (2) geographic flight-step headings are retained on arrival at stopovers. In Fig. 7, we assess these assumptions for cross-continental grey-cheeked thrush migration54,55, and explore possible alternative behaviours. Simulations otherwise followed Table 2 but with double the variation in initial migration date (indicated by trajectory colour). Classic TCSC trajectories, without extended stopovers or resetting of inner clocks (Fig. 7a), resemble both great circles and known routes (grey arrow in inset). This, however, relies on nightly departure headings being adjusted according to the angular speed of sun-azimuth experienced on the natal grounds. Contrastingly, when adjusting nightly headings to proximate angular speeds of sun-azimuth (Fig. 7b), trajectories deviate strongly from great circles. This can be averted when (Fig. 7c, sensu Alerstam22 and as in Fig. 4) geographic headings are retained on arrival at stopovers (here, after every fifth flight-step). Such a strategy is however somewhat inconsistent with TCSC migrants otherwise ignoring geographic headings on arrival (see the “Methods” section). Similar results were obtained when (Fig. 7d) migrants alternatively retained their headings from the first night after landing, i.e., whether departing on that night or making a longer stopover. This similarity was also found in simulations of the other long-distance migrants (Supplementary Fig. 3).

Fig. 7: Extended sun-compass formulations illustrate flexibility in time-compensation, latitudinal and inner-clock effects.
figure 7

Time-compensated sun compass (TCSC) trajectories with 20° directional precision among flight-steps, modelled after grey-cheeked thrush (Catharus minimus) migration (grey arrow in inset) from Yukon, Canada (black hexagons) to Columbia (open circles). Trajectories are colour-coded for initial departure date and performance (% arrival) is listed in each panel. Great circles appear as straight lines in the stereographic projection. a With uninterrupted nightly flights and, sensu Alerstam22, adjustments in heading gauged according to (hourly) angular speed of sun-azimuth retained from the natal grounds. b As in a, but with heading-adjustments based on proximate (local) rather than natal-site speeds of sun-azimuth rotation. c Based on local sun-azimuth as in b, but including stopovers as in Fig. 4, with geographic headings retained on arrival. d As in c, but where migrants alternatively retained their headings from the first night of stopover.

Factors governing compass-course performance

To diagnose factors governing compass-course performance over entire routes globally, we generalized expected performance in the normal limit (Eqs. (3) and (16)) to include parameters governing spherical-geometry effects and compass-course sensitivity (see the “Methods” section). We also estimated how seasonal constraints on migration (Table 2) limit performance. We focused on the overall best-performing loxodrome and TCSC courses, with differences between geographic and geomagnetic loxodromes indicating non-dipole (geomagnetic declination) effects56. For each compass course, we applied nonlinear regression and model selection, with directional precision among flight-steps as the independent variable, to fit compass-course performance among species. We predicted that the performance gain with TCSC over loxodrome courses would depend on three (parameter-related) factors: the minimum number of flight-steps, a route-specific spherical-geometry factor (Eq. (18)) and flight-step distance (longer distances producing greater TCSC self-correction). The spherical-geometry factor increases with increasing latitude and increasingly E–W orientation (Supplementary Fig. 4).

For each compass course, the most parsimonious regression model included all relevant performance factors (i.e., flight-step distance only for TCSC), and fit performance extremely well among species (\({R}_{{{\mathrm {adj}}}}^{2}\ge 0.97\), see Supplementary Tables 1 and 2). Figure 8 depicts compass-course performance (solid symbols) for each species simulations and tested magnitude of flight-step precision, and also regression-estimated performance (open symbols), for geographic loxodromes (purple hexagon), geomagnetic loxodromes (orange hexagons) and TCSC courses (green circles). Species (Fig. 8a–i) are presented in increasing order of the product of the three performance gain factors. Assuming equivalently precise flight-steps among courses, TCSC courses once again consistently outperformed both loxodromes, with geomagnetic loxodromes performing less consistently than geographic loxodromes. Considering biologically relevant error scenarios, the performance gain with TCSC compared with loxodromes varied as predicted with the minimum number of flight-steps and spherical-geometry factor, as illustrated for the default error scenario with 15° compass precision in Fig. 8j, and for other biologically relevant error scenarios in Supplementary Fig. 5 (for scenarios with compass precision poorer than 30°, only the daytime migrant monarch butterfly favoured TCSC). The role of the gain factors in the trade-off between self-correction and cue transfer was reflected in the model-selected regression coefficients (Supplementary Table 2), with baseline performance of TCSC courses predicted to increase faster with a number of steps compared with loxodrome courses, but also “decaying” nearly twice as rapidly with decreasing flight-step precision. Error-augmentation due to the spherical-geometry factor was also three times larger along geomagnetic loxodrome courses compared with geographic loxodrome or TCSC courses, reflecting heightened sensitivity when crossing lines of declination39,56,57.

Fig. 8: Relative compass-course performance and cue favourability predicted by distance and spherical-geometry factors.
figure 8

ai Route-optimized performance (arrival probability) vs. directional precision among flight-steps per modelled species (Table 2) for geographic loxodrome (purple hexagons), geomagnetic loxodrome (orange diamonds, right-adjusted for visibility), and TCSC courses (green circles). Species are arranged on the y-axis in increasing order of the product of the three performance gain factors (see text). Open symbols depict model-selected regression-estimated performance \(({R}_{{{\mathrm {adj}}}}^{2}\ge 0.97)\) for geographic loxodromes (hexagons) and TCSC courses (circles), including compass-specific parameters factors governing convergence in mean heading with a number of steps, spherical-geometric effects and (for TCSC courses) flight-step distance. j Performance gain (%) vs. the minimum number of flight steps and the spherical geometry factor (Eq. (18)), for TCSC courses relative to geographic loxodromes (colour-coded inner hexagons) and geomagnetic loxodromes (colour-coded outer diamonds), here when additionally considering 15° compass precision including cue transfers where applicable, 15° drift, and 2.5° between-individual variability (for other error scenarios, see Supplementary Fig. 5). Photos as in Figs. 4, 6 and by a C. Giese, c P. Gomez (https://creativecommons.org/licenses/by-sa/3.0) and d Copyright © Albert Molenaar, via Observation.org.

Discussion

Our extended formulations have facilitated a global assessment of robustness among compass courses, providing a predictive framework of naïve migratory performance and compass cue favourability among airborne migratory species and routes. Our study further highlights and quantifies three largely overlooked aspects of compass-based movements: spherical-geometry effects on course robustness, potential disadvantages of cue-transfers by naïve migrants, and that time-compensated sun compass (TCSC) courses can partially self-correct. As a result, while naïve performance regarding successful arrival is primarily constrained by directional precision and goal breadth, we further found that the relative performance gain with TCSC over courses increases with three main factors: the number of required flight-steps, flight-step distance, and a readily-derived spherical-geometry factor (Eq. (18)), which itself increases with latitude and with more Eastward or Westward orientation (Supplementary Fig. 4). However, feasibility and favourability among compass courses remain contingent on appropriate compass mechanisms, precision, and behavioural abilities, including accommodation of confounding environmental factors.

Although it is well-recognized that compass-cue availability and compass precision can be limited at high latitudes38,39,57, the mediating role of spherical geometry on resultant performance has been largely ignored in animal migration and navigation studies12,36,47. Our study emphasizes that flight-step errors at high latitudes have disproportionately large effects on compass-based movement, particularly along routes with a significant longitudinal component. Early nautical explorers overcame analogous challenges by developing maps with course headings, later improved by using transverse Mercator projections58. Naïve airborne migrants at high latitudes may in fact automatically mitigate such errors during early-autumn nights, with the shorter durations automatically reducing magnitudes of longitudinal errors. Our analysis also highlights how cue transfers reduce overall compass-course performance, contrasting with the advantage of combining multiple imprecise cues for experienced individuals with a map sense18,59. Naturally, multiple cues would still be advantageous to naïve migrants if a primary cue was unavailable (e.g., when overcast15,46) or unreliable (e.g., close to magnetic poles39,57).

The contrasting sensitivity (Fig. 3) and performance (Figs. 4 and 5) among compass courses have strong implications regarding their adaptive value to migratory populations. We propose that magnetoclinic courses are unlikely to have evolved given their general high sensitivity and poor performance along strongly direction-changing routes (for which they were envisaged33). Moreover, along nearly Southward routes, loxodrome and sun compass courses perform equivalently well or better (Fig. 5d, e). Contrastingly, as an emergent “many slightly corrected wrongs” phenomenon, TCSC courses are ubiquitously more robust compared with fixed sun-compass courses, even outperforming non-transferred loxodromes for the longest-distance (willow warbler, grey-cheeked thrush and monarch butterfly) routes, and also most closely matching the known routes. This is consistent with observed flight directions of high-latitude bird migrants56,60 most closely resembling great-circle headings (but see ref. 57), and with primacy of twilight cues among many longer-distance migrants30,31. Contrastingly, for night-migratory routes at mid-latitudes, geomagnetic loxodrome and star-compass courses performed best in biological scenarios (assuming equivalent cue precision and availability). When stars are not visible on departure, loxodrome courses transferred from polarized light to a star compass performed less well (Fig. 6), even without accounting for errors in averaging cues from dusk and dawn (i.e., since this would also require a cue transfer)24,31. This points to a further potential advantage of nocturnal TCSC courses, which could use sunset polarized light cues without requiring a sunrise heading. Our results further support that continental-scale TCSC courses can be robust to variable scheduling of flight-steps and inner clock resetting, as well as how headings are retained during stopover (Fig. 7). An important caveat to TCSC courses in pre-breeding (spring) migrations is that self-correction will not work for poleward movement (see also refs. 34,45), at least without integration with additional cues.

The finding that TCSC courses are self-correcting provides a potential explanation for how naïve migrants mitigate orientation errors, but the mechanisms underlying corrective orientation by naïve migrants following displacement remain unresolved. Interpretation of experimental evidence of such corrections is often complicated by wind48,49, polar or equatorial cue effects39,61, and probably by resetting of inner-clocks16,62. Two of the three studies which tracked juvenile night-migratory birds following displacement found clear evidence of compensatory movements48,49,63. For eight common cuckoos (Cuculus canorus) tracked by satellite following a 28° longitude displacement to the East at 55°N49, the estimated overall orientation shift relative to non-displaced (control) individuals (21°) is intriguingly close to as predicted by Eq. (4) for a TCSC (23°). However, shifts in orientation among juvenile songbirds after being displaced 16° to the West from Denmark to the Faroe Islands48 exceeded those predicted by a self-correcting star-compass (or TCSC), as did estimated corrections from a meta-study of orientation in funnels following real and virtual displacement42. The mechanisms underlying all of these corrections, therefore, remain unclear4. To diagnose the possible involvement of celestial compass use through the displacement of naïve migrants, we recommend carefully controlling for access to celestial cues throughout the study (to assess possible resetting of inner clocks). To help distinguish between inner clock celestial and other cue effects, we further suggest displacing individuals from the same capture location to the East and West and, if possible, also clock-shifting locally captured (i.e., non-displaced) migrants.

Overall, feasibility and favourability among compass courses remain contingent upon appropriate biological cue mechanisms2,10, relative compass precision and cue availability, much of which remains little known. Regarding cue mechanisms, it is not yet clear whether all migratory birds possess a magnetic compass or respond to sun azimuth and reset their inner clocks consistently with a TCSC15,30,31,64. It is even unclear whether naïve migratory bats display innate migratory directions65. Regarding relative compass precision and cue availability, we have avoided migration through polar regions or crossing the equator, where compass cues can become unavailable or uninterpretable10,11,34. Nonetheless, our model prediction that magnitudes of the compass and drift-related errors should remain below about 30° (κ > 3.7, circular length > 0.85) is supported by nightly concentrations in flight direction among radar measurements of nocturnally migrating birds40,66. Increased benefits from more frequent than the hourly cue maintenance used in our simulations are presumably limited by motion and cue-related effects (Supplementary Fig. 1c). Evidence of larger variability in migratory directions en route11,12,36 likely relates in part to responses and adaptations to external environmental factors.

Actual migratory routes are naturally also contingent on and adapted to environmental factors beyond compass precision, including topography9,28, habitat67 and weather29. An important consideration is whether compass-based movement can accommodate such spatiotemporally variable factors, as well as in the Earth’s geomagnetic field68, without requiring more sophisticated (naïve navigational) abilities4,49,69. In the simplest case, cumulative responses to coastal and wind effects can be accommodated by an offset to a single inherited migratory headings41,70. More complex and detoured routes could potentially be accommodated by following sequences of innate compass headings9,70, e.g., with shifts between headings triggered by environmental conditions, such as resource availability67,71, or geomagnetic directional signposts10,72. Alternatively, more advanced naïve migrant abilities beyond compass-based movement have been proposed to explain enhanced orientation correction following displacement4, or control of naïve trans-oceanic migration routes72. Naïve migrants are accordingly proposed to gauge gradients in both geomagnetic intensity and inclination along their inaugural route, to either adjust (inherited) compass headings as a corrective measure4,69, or else perform gradient-based navigation towards (inherited) geomagnetic goal signatures73,74. Apart from perceptive and cognitive feasibility, the efficacy of the former ability and the efficiency of the latter remains to be established, in particular given the overall N–S gradients in both geomagnetic intensity and inclination74,75.

In conclusion, we provide a modelling framework to analyse directed compass-based movement on a spherical Earth based on spatiotemporal characteristics of geomagnetic and celestial compass cues, and incorporating precision on departure and within the flight. While predictive more than diagnostic, our results support observed diversity among migratory populations regarding compass-cue hierarchy10,30,31, and suggest that a time-compensated sun compass can potentially lead to the highest arrival success at the wintering grounds for many naïve long-distance migrant populations. From a movement ecology perspective, our study highlights that care must be taken when assessing movement without accounting for precision in cue perception and subsequent orientation. More generally, our study illustrates how models with simple rules can potentially explain complicated patterns observed in nature, and reveal novel emergent effects with potentially profound life-history implications.

Methods

Calculation of flight-step headings and movement

Terms defining flight-step movement, precision and geophysical orientation cues are listed in Table 1. Since seasonal migration nearly ubiquitously proceeds from higher to lower latitudes, it is convenient to define headings clockwise from geographic South (counter-clockwise from geographic North for migration commencing in the Southern Hemisphere). Assuming a spherical Earth, a sequence of N migratory flight-steps with corresponding headings, αi, i = 0,…, N−1, the latitudes, i+1, and longitudes, λi+1, on completion of each flight-step can be calculated using the Haversine Equation76, which we approximated by stepwise planar movement using Eqs. (1) and (2). For improved computational accuracy and to accommodate within flight-step effects, we updated simulated headings and corresponding locations hourly. A migrant’s flight-step distance \({R}_{{{\mathrm {step}}}}=3.6{V}_{{\mathrm {a}}}{\cdot n}_{{\mathrm {H}}}/{R}_{{{\mathrm {Earth}}}}\) (in radians), depends on its flight speed, Va (m/s) relative to the mean Earth radius REarth (km), and flight-step hours, nH. With a geomagnetic in-flight compass, expected hourly geographic headings are modulated by changes in magnetic declination, i.e., the clockwise difference between geographic and geomagnetic South10,32.

Formulation of compass courses

For simplicity, we consider the case of a single inherited or imprinted heading. This can be extended to include sequences of preferred headings. Expected geographic loxodrome headings remain unchanged en route, i.e.,

$${\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={\bar{{{{{{\rm{\alpha }}}}}}}}_{0}$$
(5)

Relative to geographic axes, expected geomagnetic loxodrome headings remain unchanged relative to proximate geomagnetic South, i.e., are offset by geomagnetic declination on departure (updated hourly in simulations)

$${\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={\bar{{{{{{\rm{\alpha }}}}}}}}_{0}+{\delta }_{{\mathrm {m}},i}$$
(6)

As described and illustrated in detail by Kiepenheuer13, the magnetoclinic compass was hypothesized to explain the prevalence of “curved” migratory bird routes, i.e., for which local geographic headings shift gradually but substantially en route. A migrant with a magnetoclinic compass adjusts its heading at each flight-step to maintain a constant transverse component, γ′, of the experienced inclination angle, γ, so that error-free headings are (see Fig. S5 in ref. 34)

$${{\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={{\sin }}}^{-1}\left(\frac{{{\tan }}{\gamma }_{i}}{{{\tan }}{\gamma }^{{\prime} }}\right){={{\sin }}}^{-1}\left(\frac{{{\tan }}{\gamma }_{i}{{\sin }}{\bar{{{{{{\rm{\alpha }}}}}}}}_{0}}{{{\tan }}{\gamma }_{0}}\right).$$
(7)

In a geomagnetic dipole field, the horizontal (Bh) and vertical (Bz) field, and therefore also inclination, each depends solely on geomagnetic latitude, m:\(\gamma ={{{\tan }}}^{-1}\left({B}_{{\mathrm {z}}}/{B}_{{\mathrm {h}}}\right)={{{\tan }}}^{-1}\left(2{{\sin }}{\phi }_{{\mathrm {m}}}/{{\cos }}{\phi }_{{\mathrm {m}}}\right)={{{\tan }}}^{-1}\left(2{{\tan }}{\phi }_{{\mathrm {m}}}\right).\) The projected transverse component, therefore, becomes

$${\gamma }^{{\prime} }={{{\tan }}}^{-1}\left(\frac{{{\tan }}{\gamma }_{0}}{{{\sin }}{\bar{{{\alpha }}}}_{0}}\right)={{{\tan }}}^{-1}\left(\frac{2{{\tan }}{{{\phi }}}_{{\mathrm {m}},0}}{{{\sin }}{\bar{{{{{{\rm{\alpha }}}}}}}}_{0}}\right),$$

which can be substituted into Eq. (7) to produce a closed formula for magnetoclinic headings in a dipole as a function of geomagnetic latitude

$${\bar{{{{{{\rm{\alpha }}}}}}}}_{i}\left({{{\phi }}}_{{\mathrm {m}},i}\right)={{{\sin }}}^{-1}\left(\frac{{{\sin }}{\bar{{{{{{\rm{\alpha }}}}}}}}_{0}}{{{\tan }}{{{\phi }}}_{{\mathrm {m}},0}}\cdot {{\tan }}{{{\phi }}}_{{\mathrm {m}},i}\right),$$
(8)

with the expected initial heading, \({\bar{{{{{{\rm{\alpha }}}}}}}}_{0}\), and initial geomagnetic latitude, m,0, being constants. Equations (7) and (8) have no solution when inclination increases en route, which could occur following substantial orientation error or in strongly non-dipolar fields. We followed previous studies in allowing magnetoclinic migrants to head towards magnetic East or West until inclination decreased sufficiently33,34,46, but also included orientation error based on the modelled compass precision.

To assess sun-compass sensitivity algebraically, and also to improve computational efficiency, we used a closed-form equation for sunset azimuth, θs (derived in Supplementary Note 3 and see ref. 23),

$${\theta }_{{\mathrm {s}}}={{{\cos }}}^{-1}\left(\frac{-{{\sin }}{\delta }_{{\mathrm {s}}}}{{{\cos }}{{\phi }}}\right),$$
(9)

where δs is the solar declination, which varies between −23.4° and 23.4° with season and latitude23. Sunset azimuth is the positive and sunrise azimuth is the negative solution to Eq. (9) (relative to geographic N–S).

Fixed sun-compass headings represent a uniform (clockwise) offset, \({\bar{{{{{{\rm{\alpha }}}}}}}}_{{\mathrm {s}}}\) to sunrise or sunset azimuth, θs,i (calculated using Eq. (9))

$${{\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={\bar{{{{{{\rm{\alpha }}}}}}}}_{{\mathrm {s}}}+\theta }_{{\mathrm {s}},i}$$
(10)

where the preferred heading on commencement of migration, \({\bar{{{{{{\rm{\alpha }}}}}}}}_{{\mathrm {s}}}={\bar{{{{{{\rm{\alpha }}}}}}}}_{0}-{\theta }_{{\mathrm {s}},0}\), is presumed to be imprinted using an inherited geographic or geomagnetic heading2,10,30.

With a TCSC, preferred headings relative to sun azimuth are adjusted according to the time of day. In the context of sun-compass use during migration, Alerstam and Pettersson22 related the hourly “clock-shift” induced by crossing bands of longitude (∆h = 12 ∆λ/π), to a migrant’s time-compensated adjustment given the rate of change (i.e., angular speed) of sun azimuth close to sunset

$$\frac{\partial {\theta }_{{\mathrm {s}}}}{\partial h}\cong \frac{2\pi {{\sin }}{{\phi }}}{24},$$
(11)

resulting in a “time-compensated” offset in heading on departure (\(\varDelta \bar{{{{{{\rm{\alpha }}}}}}}\cong \varDelta {{{{{\rm{\lambda }}}}}}\,\sin \phi\), which Eq.(4)). Equation (4) results in near-great-circle trajectories for small ranges in latitude, , until inner clocks are reset. The feasibility of TCSC courses over longer distances (latitude ranges) relies on two critical but little-explored assumptions: (1) time-compensated orientation adjustments are presumed to follow the angular speed of sun azimuth (Eq. (11)) retained from the most recent clock-reset site, and (2) to negotiate unpredictable migratory schedules, migrants are presumed to retain their preferred geographic heading on arrival at extended stopovers22.

Regarding the first assumption, time-compensated adjustments could also be influenced by proximate speeds of sun azimuth even when inner clocks are not fully reset. We, therefore, use distinct indices to keep track of “reference” flight-steps for clock-resets (cref,i) and time-compensated adjustments (sref,i). TCSC flight-step headings can then be written as

$${\bar{{{{{{\rm{\alpha }}}}}}}}_{i}=\left\{\begin{array}{cc}{\bar{{{{{{\rm{\alpha }}}}}}}}_{{c}_{{{\mathrm {ref}}},i}}+\left({\theta }_{{\mathrm {s}},i}-{\theta }_{{\mathrm {s}},{c}_{{{\mathrm {ref}}},i}}\right)+\left({{{{{{\rm{\lambda }}}}}}}_{i}-{{{{{{\rm{\lambda }}}}}}}_{{c}_{{{\mathrm {ref}}},i}}\right){{\sin }}{\phi }_{{s}_{{{\mathrm {ref}}},i}}, & {i\,\ne\, c}_{{{\mathrm {ref}}},i} \; (12a)\\ {{{{{{\rm{\alpha }}}}}}}_{i-1}, & {i=c}_{{{\mathrm {ref}}},i} \; (12b)\end{array}\right.,$$

where θs,i represents the sunset azimuth on departures, cref,i specifies the most recent clock-reset site (during which geographic headings are also retained, i.e., \({\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={{{{{{\rm{\alpha }}}}}}}_{i-1}\)), and sref,i specifies the site defining the migrant’s temporal (hourly) rate of “time-compensated” adjustments (Eq. (11)). For TCSC courses as conceived by Alerstam and Pettersson22, reference rates of adjustment to sun azimuth are reset in tandem during stopovers, i.e., \({s}_{{{\mathrm {ref}}},i}={c}_{{{\mathrm {ref}}},i}\), but we also considered a proximately gauged TCSC, where migrants gauge their adjustments to currently experienced speed of sun azimuth, i.e., \({s}_{{{\mathrm {ref}}},i}=i\).

Regarding the second assumption, retaining geographic headings on arrival at stopovers is not consistent with ignoring geographic headings between consecutive nightly flight-steps, and may be difficult to achieve while landing. We, therefore, examined a more parsimonious alternative (Fig. 7d, Supplementary Fig. 3) where migrants retain their (usual) TCSC heading from the first night of stopovers, i.e., as if they would have departed on the first night. This alternative also simplifies Eq. (12) to

$${\bar{{{{{{\rm{\alpha }}}}}}}}_{i}={\bar{{{{{{\rm{\alpha }}}}}}}}_{{c}_{{{\mathrm {ref}}},i}}+\left({\theta }_{{\mathrm {s}},({t}_{i-1}+1)}-{\theta }_{{\mathrm {s}},{t}_{i-1}}\right)+\left({{{{{{\rm{\lambda }}}}}}}_{i}-{{{{{{\rm{\lambda }}}}}}}_{{c}_{{{\mathrm {ref}}},i}}\right){{\sin }}{{{\phi }}}_{{s}_{{{\mathrm {ref}}},i}}$$
(12c)

where the index ti−1 here represents the departure date from the previous flight.

Sensitivity of compass-course headings

Sensitivity was assessed by the marginal change in expected heading from previous (imprecise) headings, \(\partial {\bar{\alpha }}_{i}/\partial {\alpha }_{i-1}\). When this is positive, small errors in headings will perpetuate, and therefore expected errors in migratory trajectories will grow iteratively. Conversely, negative sensitivity implies self-correction between successive flight-steps. Geographic and geomagnetic loxodromes are per definition constant relative to their respective axes so have “zero” sensitivity, as long as cue-detection errors are stochastically independent.

For magnetoclinic compass courses in a dipole field, sensitivity can be calculated by differentiating Eq. (8) with respect to previous headings:

$$\frac{{\mathrm {d}}{\bar{{{{{{\rm{\alpha }}}}}}}}_{i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}}=\frac{{\sin \bar{{{{{{\rm{\alpha }}}}}}}}_{0}}{\tan {\phi }_{{\mathrm {m}},0}}\cdot \frac{1}{\cos {\bar{\alpha }}_{i}{\cos }^{2}{\phi }_{{\mathrm {m}},i}}\frac{\partial {\phi }_{{\mathrm {m}},i}}{\partial {\alpha }_{i-1}}=\frac{{R}_{{\mathrm {step}}}\,\sin {\alpha }_{i-1}{\sin \bar{{{{{{\rm{\alpha }}}}}}}}_{0}}{\cos {\bar{\alpha }}_{i}{\cos }^{2}{\phi }_{{\mathrm {m}},i}\,\tan {\phi }_{{\mathrm {m}},0}}$$
(13)

All three terms in the denominator indicate, as illustrated in Fig. 3b, that magnetoclinic courses become unstably sensitive at both high and low latitudes, and any heading with a significantly East–West component.

Sensitivity of fixed sun compass headings is non-zero due to sun azimuth dependence on location (Eq. (9)):

$$\frac{{\mathrm {d}}{\bar{{{{{{\rm{\alpha }}}}}}}}_{i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}} = \, \frac{\sin {\delta }_{{\mathrm {s}},i}}{\sin {\theta }_{{\mathrm {s}},i}}\cdot \frac{\sin {\phi }_{i}}{{\cos }^{2}{\phi }_{i}}\frac{\partial {\phi }_{i}}{\partial {\alpha }_{i-1}}=\frac{\sin {\delta }_{{\mathrm {s}},i}}{\sin {\theta }_{{\mathrm {s}},i}}\cdot \frac{{R}_{{\mathrm {step}}}\,\sin {\phi }_{i}\,\sin {\alpha }_{i-1}}{{\cos }^{2}{\phi }_{i}}\\ = \, {R}_{{\mathrm {step}}}\cdot \,\sin {\alpha }_{i-1}\frac{\tan {\phi }_{i}}{\tan {\theta }_{{\mathrm {s}},i}}$$
(14)

The sine factor on the right-hand side in Eq. (14) causes the sign of \(\partial {\bar{\alpha }}_{i}/\partial {\alpha }_{i-1}\) to be opposite for East to West or West to East headings, and tan θs also change sign at the fall equinox (due to solar declination changing sign). The azimuth term in the denominator indicates heightened sensitivity closer to the summer or winter equinox and at high latitudes, and, conversely, heightened robustness to errors closer to the spring or autumnal equinox (since \({{\tan }}{\theta }_{{\mathrm {s}},0}\to \pm \infty\)). This seasonal and directional asymmetry is illustrated in Fig. 3c, e.

TCSC courses (Eq. (12)) involve up to three sensitivity terms, due to dependencies on sun azimuth, longitude and latitude:

$$ \frac{{\mathrm {d}}{\bar{{{{{{\rm{\alpha }}}}}}}}_{i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}} = \, {R}_{{{\mathrm {step}}}}\cdot {{\sin }}{\alpha }_{i-1}\frac{{{\tan }}{\phi }_{i}}{{{\tan }}{\theta }_{{\mathrm {s}},i}}+\frac{{\mathrm {d}}{\lambda }_{i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}}{{\sin }}{{{\phi }}}_{{c}_{{{\mathrm {ref}}}},i}+\left({{{{{{\rm{\lambda }}}}}}}_{i}-{{{{{{\rm{\lambda }}}}}}}_{{c}_{{{\mathrm {ref}}}},i}\right)\frac{{\mathrm {d}}{{\sin }}{\phi }_{{s}_{{{\mathrm {ref}}}},i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}}\\ =\, \left\{\begin{array}{cc}{R}_{{{\mathrm {step}}}}\cdot \left[{{\sin }}{\alpha }_{i-1}\frac{{{\tan }}{\phi }_{i}}{{{\tan }}{\theta }_{{\mathrm {s}},i}}-\frac{{{\cos }}{{{{{{\rm{\alpha }}}}}}}_{i-1}{{\sin }}{\phi }_{{s}_{{{\mathrm {ref}}}},i}}{{{\cos }}{\phi }_{i-1}}\right],\hfill & {{{{{\rm{classic}}}}}} \; (15{{{{{\rm{a}}}}}})\\ {R}_{{{\mathrm {step}}}}\left[{{\sin }}{\alpha }_{i-1}\frac{{{\tan }}{\phi }_{i}}{{{\tan }}{\theta }_{{\mathrm {s}},i}}-\frac{{{\cos }}{{{{{{\rm{\alpha }}}}}}}_{i-1}{{\sin }}{\phi }_{{s}_{{{\mathrm {ref}}}},i}}{{{\cos }}{\phi }_{i-1}}+\left({{{{{{\rm{\lambda }}}}}}}_{i}-{{{{{{\rm{\lambda }}}}}}}_{{c}_{{{\mathrm {ref}}}},i}\right){{\sin }}{\alpha }_{i-1}{{\cos }}{\phi }_{i}\right], & {{{{{\rm{proximate}}}}}} \; \left(15{{{{{\rm{b}}}}}}\right).\end{array}\right.$$

The first square-bracketed terms in Eqs. (15a, b) are identical to the fixed sun compass (Eq. (14)), reflecting seasonal and latitudinal dependence in sun-azimuth. For headings with a Southward component (α0 < 90°), the second bracketed terms are always negative, i.e., sensitivity-reducing, resulting in a broad range in latitude and headings with self-correcting headings (Fig. 3c–f). The third bracketed term in Eq. (15b) (for a proximately-gauged TCSC) is also negative, and in fact increasingly so until clocks are reset, but remains small in magnitude compared to the second term.

Spatiotemporal migration model

We wrote a model in MATLAB to simulate and assess the feasibility and robustness of each compass course to spatiotemporal effects on a global scale, based on our compass course formulations (Eqs. (5)–(12)). For the species simulations, we also incorporated spatiotemporally dynamic geomagnetic data (MATLAB 2020b package igrf)51, assuming a default season, fall 2000. For the generic migrant simulations, we assumed a geomagnetic dipole Earth, i.e., ignored variation in magnetic declination. Sunset azimuth was computed using Eq. (9) (this was, e.g., two orders of magnitude faster than the routine further requiring time of day and longitude used in ref. 34). In all cases 10,000 individuals were simulated, until they either arrived in goal areas, passed 1000 km South of the goal latitude or exceeded the maximum number of steps, Nmax. To avoid migrants overshooting narrow goal areas within a single flight-step, we assumed they could identify goal areas in flight (checked once per decile of flight-step durations; Table 2).

For the species simulations, optimal inherited headings were determined using the MATLAB nonlinear solver fminbnd, among candidate initial headings clockwise from East (−90° clockwise from S) to West (90°). For sun compass courses, which can potentially begin with Northward headings34,64, we tested initial headings between NE (−145°) and NW (145°). Error scenarios were assessed for both 5°–60° directional precision among flight-steps, and biologically relevant scenarios with 5°–40° compass precision in 5° intervals (assuming equivalent precision in cue detection, transfers and maintenance), and both in the absence of and including 15° within-flight drift. To result in 15° expected drift per flight step, hourly concentration in drift was adjusted as an autocorrelated process with lag 1. We further assumed a default between-individual variability of 2.5° (κ = 525, circular length = 0.999). For the marsh warbler uncertainty analysis (Fig. 6), we varied this between 0° and 10° (κ = 33, circular length = 0.985) in 1° interval, and also tested 20° within-flight drift.

For the generic migrants, we simulated migration between 65°N–0°N and between 45°N–25°N to a goal with a radius of 500 km, for biologically relevant scenarios with 0°–60° compass precision in 1° interval, and both in the absence of and including 15° within-flight drift. To obtain all possible routes between these latitudes (Fig. 5a), we varied initial (inherited) headings in 0.5° intervals.

All relevant model parameters are listed in Table 2. These were chosen to match known studies and migration patterns. In some cases (e.g., marsh warbler and monarch butterfly), goal areas reflect plausible destinations from which migrants presumably use other cues to home or pin-point to even narrower known winter or passage areas2,3. When flight-step distances and stopover durations were less known or certain, these were chosen to ensure modelled migration was consistent with known departure and arrival dates.

Generic migrants departed on September 15 ± 5 (mean and standard deviation), in 8-h flight-steps at speeds of 12.5 m s−1. Sequences of 5 consecutive flight-steps were interspersed by stopovers of 5 ± 2 days.

Formulating migratory performance

Performance (arrival probability) of independent stepwise movement on a plane to a (circular) goal area of radius Rgoal will approximate a cumulative normal distribution (erf function), modulated by the expected number of steps and the angular breadth to the goal area, which for long-distance routes is \(\beta ={{{\tan }}}^{-1}\left({R}_{{\mathrm {{goal}}}}/{R}_{{{\mathrm {mig}}}}\right)\cong {R}_{{{\mathrm {goal}}}}/{R}_{{{\mathrm {mig}}}}\). Assuming uniform population headings and a sufficiently large number of flight-steps with directional precision \({\sigma }_{{{\mathrm {step}}}}\), a first approximation of performance is

$${\hat{p}}_{\beta ,\hat{N}}\approx p\left(\left|\left(\frac{1}{\hat{N}}\mathop{\sum }\limits_{i=1}^{\hat{N}}{\alpha }_{i}\right)-\bar{\alpha }\right|\le \beta \right)\approx {erf}\left(\frac{\beta }{\sqrt{2}{\sigma }_{{{\mathrm {step}}}}/\sqrt{\hat{N}}}\right),$$
(16)

where the expected number of steps, \(\hat{N}\), scales with the minimum (error-free) number of steps,

N0, multiplied by a ratio of Bessel functions (Supplementary Note 2). From Eq. (16) we see that within the planar and high-precision limits, performance will increase with \({\beta }_{{{\mathrm {adj}}}}=\beta \sqrt{{N}_{0}}\), which is the length-adjusted goal breadth (Eq. (3)).

In the equation for flight-step longitude (Eq. (2)), the secant factor (cosine of latitude in the denominator) reflects the poleward convergence of longitudinal meridians. This means that for any compass course, orientation errors at higher latitudes will exert a greater influence on overall longitudinal error:

$$\frac{{\mathrm {d}}{{{{{{\rm{\lambda }}}}}}}_{i}}{{\mathrm {d}}{{{{{{\rm{\alpha }}}}}}}_{i-1}}\cong -\frac{{R}_{{{\mathrm {step}}}}{{\cos }}{\alpha }_{i-1}}{{{\cos }}{{{\phi }}}_{i-1}}.$$
(17)

Aggregated across entire migration routes, the effective longitudinal error will scale approximately as in a Mercator projection58:

$$L=\frac{1}{\left({{{\phi }}}_{0}-{{{\phi }}}_{{\mathrm {A}}}\right)}{\int }_{{{{\phi }}}_{{\mathrm {A}}}}^{{{{\phi }}}_{0}}\frac{{\mathrm {d}}{{\phi }}}{{{\cos }}{{\phi }}}=\frac{1}{\left({{{\phi }}}_{0}-{{{\phi }}}_{{\mathrm {A}}}\right)}{{{{{\rm{ln}}}}}}\left(\frac{{{\tan }}\left({{{\phi }}}_{0}/2+\frac{\pi }{4}\right)}{{{\tan }}\left({{{\phi }}}_{{\mathrm {A}}}/2+\frac{\pi }{4}\right)}\right)$$

where 0 and A are the initial (natal) and arrival latitude, respectively. To include latitudinal contribution to error, we modulated the multiplicative factor L according to route-mean orientation, \(\bar{\alpha }\),

$$G=\sqrt{{\left({{{{{\rm{L}}}}}}{{\sin }}\bar{\alpha }\right)}^{2}+{{{\cos }}}^{2}\bar{\alpha }}.$$
(18)

For TCSC courses \(\bar{\alpha }\) was estimated as the average between the initial and final great circle bearings between the natal and goal locations. The spherical-geometry factor, G, is largest for purely Eastward or Westward headings (G=L > 1) and nonexistent for North–South headings (G = 1, reflecting no longitude bands being crossed). We expected this factor to affect compass courses differentially according to their error-accumulating or self-correcting nature.

We further modified the effective goal-area breadth to account for a (geographically) circular goal area on the sphere, i.e., effectively modulating the longitudinal component of the goal-area breadth at the arrival latitude, A:

$${\beta }_{{\mathrm {A}}}=\beta \sqrt{{{{{\sin }}}^{2}\bar{\alpha }+\left({{\cos }}\bar{\alpha }/{{\cos }}{{{\phi }}}_{{\mathrm {A}}}\right)}^{2}}.$$
(19)

To account for differential sensitivity among compass-courses, we generalized the normal many-wrongs relation between performance and number of steps, \(1/{\hat{N}}^{\eta }\), from η = 0.5 (Eqs. (3) and (16)) to

$$\eta \left({\sigma }_{{step}}|s,b\right)=\left(0.5+b\right){e}^{-s{{\sigma }_{{step}}}^{2}},$$
(20)

where b < 0 reflects iterative augmentation of errors and b > 0 self-correction, and s represents a modulating exponential damping factor, consistent with the limiting circular-uniform case (as κ → 0, i.e., \({\sigma }_{{{\mathrm {step}}}}\to \infty\)), where no (timely) convergence of heading is expected with an increasing number of steps.

In assessing performance, we also accounted for seasonal migration constraints via a population-specific maximum number of steps, Nmax (Table 2; this became significant for the longest-distance simulations with large expected errors, i.e., small \({{{{{{\rm{\kappa }}}}}}}_{{{\mathrm {step}}}}=1/{\sigma }_{{{\mathrm {step}}}}^{2}\)). The probability of having arrived at the goal latitude can be estimated using the Central Limit Theorem:

$${p}_{{{\phi }},{N}_{{\max }}}\cong \frac{1}{2}\left[1-{erf}\left(\left(\frac{{N}_{0}}{{N}_{{\max }}}-\frac{{I}_{1}\left({{{{{{\rm{\kappa }}}}}}}_{{{\mathrm {step}}}}\right)}{{I}_{0}\left({{{{{{\rm{\kappa }}}}}}}_{{{\mathrm {step}}}}\right)}\right)\cdot \frac{{{\cos }}\bar{\alpha }}{{\sigma }_{{\mathrm {C}}}\sqrt{2}}\right)\right],$$
(21)

where Ij is the modified Bessel function of the first kind and order j53, and σC (the standard deviation in the latitudinal component of flight-step distance) can be calculated using Bessel functions together with known properties of sums of cosines53,77 (Supplementary Note 2).

Regression-estimated performance

We fit the parameters in the spherical-geometry factor (Eq. (18)) and many-wrongs effect (Eq. (20)) according to expected performance, estimated as the product of sufficiently timely migration (Eq. (21)) and sufficiently precise migration, now generalized from Eq. (16), i.e.

$${p}_{\beta ,\hat{N}}\cong {erf}\left(\frac{{\beta }_{{\mathrm {A}}}}{{G}^{{g}}\sqrt{2\left({{\sigma }_{{{\mathrm {ind}}}}}^{2}+{\sigma }_{{{\mathrm {step}}}}/{\hat{N}}^{n}\right)}}\right),$$
(22)

This resulted in up to four fitted parameters for each compass course

  1. i.

    an exponent, g, to the spherical-geometry factor (Eq. (19)), i.e., Gg, reflecting how growth or self-correction in errors between steps further augments or reduces this factor,

  2. ii.

    a baseline offset, b0, to the “normal” exponent η = 0.5, which mediates the relation between the number of steps and performance (Eq. (20)),

  3. iii.

    an exponent s reflecting how decreasing precision among flight-steps dampens the many-wrongs convergence (Eq. (20)),

  4. iv.

    for TCSC courses, a modulation, ρ, to the offset, b0, quantifying the extent to which self-correction increases with increased flight-step distance Rstep, i.e., \({{b={b}_{0}R}_{{{\mathrm {step}}}}^{{\prime} }}^{\rho }\) in Eq. (20), where \({R}_{{{\mathrm {step}}}}^{{\prime} }\)is the flight-step distance scaled by its median value among species.

Parameters were fit using MATLAB routine fitnlm based on compass course performance among species and seven error scenarios (5°, 10°, 20°, 30°, 40°, 50°, and 60° directional precision among flight-steps), for all combinations (including or excluding the four parameters). The most parsimonious combination of parameters was selected using MATLAB routine aicbic, based on the AICc, the Akaike information criterion corrected for small sample size57. Null values for the spherical-geometry parameter were set to g = 1, and for the parameters governing convergence of route-mean headings b0 = 0, s = 0, and, for TCSC courses, ρ = 0 (for loxodrome courses, ρ = 0 by default, i.e., was not fitted).

Statistics and reproducibility

Our simulation results, regression fitting and AICc-model selection are reproducible using the MATLAB scripts (see the section “Code availability”).

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.