Gray Line Calculator
Created by: Lucas Grant
Last updated:
Find your gray-line DX windows for today — sunrise and sunset in UTC, the ±30-minute propagation sweet spot, recommended HF bands, and a full sun elevation chart for planning your next long-path DX session.
Gray Line Calculator
Amateur RadioCalculate local sunrise and sunset times, the gray line (terminator) DX window, and best HF bands for gray-line propagation based on your grid square or latitude/longitude.
Note: These results are for guidance only and shouldn't be taken as professional advice. Always double-check with a qualified expert before making decisions.
What is a Gray Line Calculator?
The gray line, also called the greyline or solar terminator, is the narrow transition zone between the sunlit and dark halves of the Earth. At any moment, it circles the globe as a great circle approximately perpendicular to the direction of the sun, though its orientation changes with the season as the sun's declination shifts between +23.45° in June and −23.45° in December. The gray line moves westward at roughly 1,670 km per hour at the equator, slower at higher latitudes. From a fixed location on Earth, the terminator passes through twice per day: once at sunrise and once at sunset.
The gray line is a uniquely valuable propagation window for HF amateur radio operators because of what happens to the ionosphere as daylight transitions to darkness and back. During the day, the D layer of the ionosphere — a low-altitude (60–90 km) region of ionization caused by solar ultraviolet radiation — strongly absorbs HF signals below about 10 MHz, particularly on 40m (7 MHz), 80m (3.5 MHz), and 160m (1.8 MHz). The D layer forms quickly after sunrise and dissipates within 30–60 minutes after sunset. During the gray-line window, the D layer is absent on the nighttime side of the terminator while the F layer (which provides the long-distance reflection) is still present, enabling signals to travel paths that would be blocked at any other time of day.
The DX-enhancing effect of the gray line is most powerful when both the transmitting station and the target station are simultaneously near their respective terminators — one at or near sunrise, the other at or near sunset. This alignment creates a propagation path that traverses the least amount of daylit ionosphere, minimizing D-layer absorption across the entire great-circle path. On 40m and 80m, contacts exceeding 10,000 km are routine during the gray-line window but nearly impossible during the day. On 160m, some of the most prized DX contacts (transoceanic and trans-polar paths) occur exclusively during gray-line alignment.
For practical HF DX operation, the gray line is worth planning around seriously. A station working the European 40m morning gray line from the eastern US can often hear and work stations that are inaudible 30 minutes later. The window is brief — typically 30–60 minutes for optimal conditions — so knowing the exact UTC time of sunrise and sunset at your location, and the corresponding sunset or sunrise time at the target station, is critical. This calculator provides that information, along with a sun elevation curve and a month-long window table for longer-range scheduling.
How the Gray Line Calculator Works
The calculator uses a simplified astronomical model based on the solar declination formula and the hour-angle equation. First, it computes solar declination for the entered day of year: δ = 23.45° × sin(360/365 × (DOY − 81)). This sinusoidal model captures the seasonal variation in the sun's north-south position to within about 0.5°, which translates to roughly 2 minutes of sunrise/sunset error — fully adequate for gray-line operating purposes. The solar elevation at any UTC time and location is then calculated from: sin(elevation) = sin(lat) × sin(δ) + cos(lat) × cos(δ) × cos(H), where H is the hour angle in degrees: H = (UTC − 12) × 15° + longitude.
Sunrise and sunset are found by binary search — the calculator evaluates the solar elevation equation iteratively, halving the time interval each step, until it converges on the UTC hour where elevation crosses zero degrees. The gray-line window is defined as ±30 minutes (±0.5 hours) around each event. For each month table entry, the same calculation is repeated for every day in the current month, giving a complete schedule of gray-line windows. The sun elevation chart plots elevation at 30-minute intervals across the full 24-hour UTC day, making it easy to visualize the complete daylight/darkness cycle and identify the terminator crossing times visually.
Gray line solar position formulas
Solar declination: δ = 23.45 × sin(360/365 × (DOY − 81)) degrees
Hour angle: H = (UTC − 12) × 15 + longitude_deg degrees
Solar elevation: sin(el) = sin(lat) × sin(δ) + cos(lat) × cos(δ) × cos(H)
Sunrise/sunset: solve for UTC hour where el = 0° (binary search)
Gray-line window: sunrise − 0.5 h to sunrise + 0.5 h
Gray-line window: sunset − 0.5 h to sunset + 0.5 h
Example Calculations
Gray line at 40°N, 75°W on day 166 (June 15)
Solar declination δ = 23.45 × sin(360/365 × (166 − 81)) = 23.45 × sin(83.8°) = 23.30°. Sunrise binary search converges to approximately 09:25 UTC; sunset near 23:50 UTC. Gray-line DX windows: 08:55–09:55 UTC (sunrise) and 23:20–00:20 UTC (sunset). Day length ≈ 14.4 hours. On 40m, a European station (GMT+0–2) at sunset around 20:00–21:00 UTC would not overlap this eastern US sunrise window; the US sunset window at 23:20 UTC aligns better with east Asia sunrise.
Gray line at 51°N, 0°E (London) on day 355 (December 21)
Solar declination δ = 23.45 × sin(360/365 × (355 − 81)) = 23.45 × sin(270.1°) ≈ −23.45° (winter solstice). Sunrise ≈ 08:03 UTC; sunset ≈ 15:57 UTC. Day length ≈ 7.9 hours. Gray-line windows: 07:33–08:33 UTC and 15:27–16:27 UTC. On 80m (3.5 MHz), the morning window at 07:33 UTC aligns with US east coast stations (02:33 local) — this is the classic transatlantic 80m gray-line path that produces extraordinary signal strengths in winter.
Coordinating a dual gray-line path: NY to Japan on 40m
New York (40.7°N, 74°W) sunrise day 80 (March 21) ≈ 10:58 UTC. Tokyo (35.7°N, 140°E) sunset day 80 ≈ 09:14 UTC. The paths' terminators are separated by about 1 hour 44 minutes — not simultaneous, but overlapping enough that 40m can provide enhanced propagation from about 09:00–11:00 UTC. The short path distance is ~10,800 km; at F-layer reflection heights the signal traverses a significant nighttime path in the western Pacific even at 10:00 UTC.
Common Amateur Radio Uses
- Planning 40m and 80m DX contacts timed to the morning or evening gray-line window
- Long-path contact scheduling for rare DX entities where the short path is blocked or noisy
- POTA and SOTA activations timed for peak low-band propagation to maximize contacts
- DX contest gray-line strategy — working multipliers on 40m/80m during the brief window
- Teaching ionospheric propagation concepts for Technician and General class licence preparation
- Coordinating sked times with DX stations by comparing your sunrise with their sunset (or vice versa)
Tips for Better Ham Radio Planning
The gray-line window is not symmetric in its propagation utility. The sunrise window tends to favor eastbound paths (working stations to your east that are still in darkness as you come into daylight), while the sunset window favors westbound long paths (working stations to your west that are just entering dawn). On 40m from the eastern US, the prime European path is typically during your own sunset (approximately 22–24 UTC in winter) when Europe's D layer has collapsed but the F layer is still strongly reflecting. On 80m, the morning gray line (your sunrise, Europe's late night) often produces the strongest transatlantic signals.
To maximize a gray-line contact, both stations should be within ±30 minutes of their respective terminators simultaneously. Use this calculator for your location, then use a second lookup (DX Atlas, VOACAP, or the same calculator with the DX station's coordinates) to find their sunrise or sunset time. The ideal scenario is your sunrise coinciding with their sunset (or your sunset with their sunrise), but even partial overlap significantly reduces D-layer absorption along the path.
The calculator uses a simplified astronomical model without atmospheric refraction correction or the equation-of-time adjustment. Actual sunrise and sunset may differ by 1–6 minutes from published civil sunrise/sunset tables, which do include refraction and the irregular equation of time. For gray-line DX planning, this accuracy is more than adequate — the ionospheric gray-line window itself is 30–60 minutes wide, so a 5-minute difference in the calculated sunrise time is well within the useful operating window.
Frequently Asked Questions
What is the gray line and why is it useful for HF DX?
The gray line (also called the "greyline" or solar terminator) is the transition zone between the sunlit and dark sides of the Earth. At sunrise and sunset, the D-layer of the ionosphere — which absorbs HF signals during the day — rapidly collapses or builds. For about 30–60 minutes around each event, HF signals (especially on 40m and 80m) propagate with unusually low absorption. Stations near the terminator on opposite sides of the world can achieve extraordinary long-path contacts during this window.
How is the gray line position calculated?
The terminator position is determined by the sub-solar point — the location on Earth directly below the sun. Solar declination (the sub-solar latitude) equals 23.45° × sin(360/365 × (day − 81)). For a given observer location, sunrise and sunset occur when the solar elevation angle equals 0°. The elevation is computed from: sin(elev) = sin(lat) × sin(declin) + cos(lat) × cos(declin) × cos(hour_angle), where hour angle = (UTC_hours − 12) × 15° + longitude.
Which HF bands are best during the gray line?
40m (7 MHz) and 80m (3.5 MHz) are traditionally the gray-line DX bands because they are low enough in frequency to depend heavily on D-layer absorption during the day, yet high enough to propagate globally via the F2 layer when the D layer is absent. 160m (1.8 MHz) also performs extremely well near the gray line for true DX. 20m (14 MHz) can provide excellent long-path contacts slightly before or after the window. 10–15m are daytime bands that close near sunset.
What is "long path" propagation?
Every great-circle path between two points has two routes — the short path (the shorter arc) and the long path (the longer arc, the other way around the globe). Long-path propagation follows the longer route and can exceed 20,000 km. Long-path contacts are most reliable when the long path is in darkness, which for mid-latitude stations often coincides with the gray line at one or both ends. The total great-circle distance is 40,074 km; long path = 40,074 − short path.
Why do sunrise and sunset times differ from my local forecast?
This calculator uses an astronomical algorithm with no atmospheric refraction correction and no equation-of-time adjustment. The USNO or time.is-based local forecasts include refraction (which raises the apparent sun slightly, extending daylight by a few minutes) and the equation of time. The difference is typically 1–5 minutes and is not significant for gray-line HF DX planning purposes. The key is the UTC time, not local standard time.
How do I find my latitude and longitude if I only have a grid square?
Convert your Maidenhead locator to decimal degrees using the Grid Square Distance Calculator. A 4-character grid (e.g., FN20) gives a position accurate to within about 1°; a 6-character grid (e.g., FN20qe) gives about 0.05°. The sunrise/sunset times change by about 4 minutes per degree of longitude, so 6-character precision is more than adequate for gray-line planning.
Sources and References
- ARRL Handbook (latest edition) — HF Propagation and Ionospheric Effects chapter
- Meeus, J. — "Astronomical Algorithms" (Willmann-Bell, 2nd ed., 1998) — solar position equations
- ITU-R P.373 — Definitions of Maximum and Minimum Transmission Frequencies
- DX World and various DX operating guides — practical gray-line DX techniques and scheduling