Solar Declination Angle Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Introduction to solar declination and the Sun's yearly north-south swing

Solar declination, written δ, is the angular distance of the Sun's centre north or south of the celestial equator — the projection of Earth's equator onto the sky. It is one half of the Sun's geocentric equatorial coordinate pair; the other half is right ascension. Because Earth's rotation axis is tilted with respect to the plane of its orbit and keeps a nearly fixed direction in space over a single year, the Sun appears to migrate from roughly 23.44° south of the equator in late December to roughly 23.44° north in late June, and back again. That single angle drives the seasons, the length of the day at every latitude, and the geometry every fixed-tilt photovoltaic array is designed around.

The number this page reports is the apparent geocentric declination of the Sun at the instant you specify, computed with the algorithm published by the NOAA Global Monitoring Laboratory for its Solar Calculator, which is itself a transcription of the low-precision solar-coordinates method in Jean Meeus, Astronomical Algorithms. It is not the crude single-sine approximation that most declination pages use. That distinction matters: the classic 23.45° day-number formula is off by more than a degree on some dates, which is enough to move a computed sunrise time by several minutes and to mis-state a solar noon elevation by a visible amount.

Two things declination is not. It is not the Sun's elevation above your horizon, and it is not the solar zenith angle. Declination depends only on the moment in time; it is the same number for an observer in Reykjavik and one in Nairobi. Elevation and zenith angle additionally require your latitude and the hour angle, and this calculator derives them for you as separate, clearly labelled outputs so the three quantities are never conflated.

How to use the date, UTC time and latitude fields

Enter three things. Date (UTC) is the civil Gregorian calendar date. The engine converts it to a Julian Day number directly from the year, month and day, so leap years — including the century rule that makes 1900 an ordinary year and 2000 a leap year — are handled exactly, and no day-of-year lookup table is involved. Time of day (UTC) defaults to 12:00 because most published declination tables are quoted at noon; change it if you need a specific instant. Note that this field is Coordinated Universal Time, not your local clock: if you are in New York in summer you must add four hours to your wall clock, and if you are in Berlin in summer you must subtract two.

Observer latitude is optional to the declination itself but required for the derived quantities. Give it in decimal degrees, positive north and negative south, so Sydney is 33.87 and Anchorage is +61.22. Latitude never enters the declination calculation; it only feeds the solar-noon elevation, the zenith angle and the day-length figures. If you type a latitude outside ±90° or a non-numeric string the calculator refuses to run and tells you why rather than producing a silent NaN.

Press Calculate and you get the declination in decimal degrees and in degrees-minutes-seconds, the day-of-year number, the Julian Day, the equation of time in minutes, the Cooper and Spencer approximations with their signed deviation from the rigorous value, and the latitude-dependent block. The annual curve below the results redraws for the selected year with your date marked, and the two approximate models can be overlaid so you can see exactly where and by how much they go wrong.

The declination formula chain, from Julian day to apparent solar longitude

The rigorous route to declination never uses a day number at all. It starts from the Julian Day JD, converts that to Julian centuries since the epoch J2000.0, and builds the Sun's ecliptic longitude from a mean term plus an equation-of-centre correction. The time argument is

Formula: T = (JD − 2451545.0) / 36525

T=JD2451545.036525

The geometric mean longitude and geometric mean anomaly of the Sun, in degrees, follow as third- and second-order polynomials in T:

Formula: L_0 = 280.46646 + 36000.76983 ⁢ T + 0.0003032 ⁢ T^2

L0=280.46646+36000.76983T+0.0003032T2

Formula: M = 357.52911 + 35999.05029 ⁢ T − 0.0001537 ⁢ T^2

M=357.52911+35999.05029T0.0001537T2

Earth's orbit is an ellipse, so the Sun does not move along the ecliptic at a constant rate. The equation of centre C converts the mean anomaly into the true one; it is the term the naive sine formula throws away.

Formula: C = (1.914602 − 0.004817 ⁢ T − 0.000014 ⁢ T^2) ⁢ sin ⁡ M + (0.019993 − 0.000101 ⁢ T) ⁢ sin ⁡ 2 M + 0.000289 ⁢ sin ⁡ 3 M

C=(1.9146020.004817T0.000014T2)sinM+(0.0199930.000101T)sin2M+0.000289sin3M

Adding C to L0 gives the true longitude, and a small aberration-and-nutation correction keyed to the ascending node of the Moon's orbit gives the apparent longitude λ:

Formula: λ = L_0 + C − 0.00569 − 0.00478 ⁢ sin ⁡(125.04 − 1934.136 ⁢ T)

λ=L0+C0.005690.00478sin(125.041934.136T)

The second ingredient is the obliquity of the ecliptic. It is emphatically not a constant. The mean obliquity ε0 shrinks by about 46.815 arcseconds — roughly 0.013° — per Julian century, and a nutation term of amplitude 0.00256° gives the true obliquity ε:

Formula: ε_0 = 23 ° 26 ′ 21.448 ″ − 46.8150 ″ ⁢ T − 0.00059 ″ ⁢ T^2 + 0.001813 ″ ⁢ T^3

ε0=23°2621.44846.8150T0.00059T2+0.001813T3

Formula: ε = ε_0 + 0.00256 ⁢ cos ⁡(125.04 − 1934.136 ⁢ T)

ε=ε0+0.00256cos(125.041934.136T)

Declination is then the single line that turns an ecliptic longitude into an equatorial one:

Formula: δ = arcsin ⁡(sin ⁡ ε ⁢ sin ⁡ λ)

δ=arcsin(sinεsinλ)

In mid-2026 that chain gives a mean obliquity of 23.4358° and a true obliquity of 23.4381°, so the maximum declination reached at the June solstice is 23.4381°, not 23.45°. Anyone quoting 23.45° is using a value rounded from a mid-twentieth-century epoch.

How the three published declination models compare

Three formulas dominate the literature. Cooper (1969) is a single sine in the day number n. Spencer (1971) is a three-harmonic Fourier series in the day angle Γ=2π(n1)/365. The NOAA/Meeus chain above is the rigorous one.

Formula: δ_Cooper = 23.45 ° ⁢ sin ⁡ ((360 ⁢(284 + n)) / 365)

δCooper=23.45°sin(360(284+n)365)

Formula: δ_Spencer = 0.006918 − 0.399912 ⁢ cos ⁡ Γ + 0.070257 ⁢ sin ⁡ Γ − 0.006758 ⁢ cos ⁡ 2 Γ + 0.000907 ⁢ sin ⁡ 2 Γ − 0.002697 ⁢ cos ⁡ 3 Γ + 0.00148 ⁢ sin ⁡ 3 Γ

δSpencer=0.0069180.399912cosΓ+0.070257sinΓ0.006758cos2Γ+0.000907sin2Γ0.002697cos3Γ+0.00148sin3Γ

Spencer's result is in radians and is converted to degrees for display. The table below gives the three models for five instants in 2026, each at 12:00 UTC, with the signed deviation of the approximations from the NOAA/Meeus value. Every figure was produced by the same code that runs in this page.

Date (12:00 UTC) Day n NOAA/Meeus δ Cooper 1969 δ (error) Spencer 1971 δ (error)
1 Jan 2026 1 −22.9762° −23.0116° (−0.036°) −23.0586° (−0.082°)
20 Mar 2026 (equinox) 79 −0.0433° −0.8072° (−0.764°) −0.4610° (−0.418°)
21 Jun 2026 (solstice) 172 +23.4381° +23.4498° (+0.012°) +23.4520° (+0.014°)
23 Sep 2026 (equinox) 266 −0.1920° −1.0089° (−0.817°) +0.2488° (+0.441°)
21 Dec 2026 (solstice) 355 −23.4373° −23.4498° (−0.013°) −23.4199° (+0.017°)

The pattern is the one you would predict. Near the solstices the declination curve is flat, so a phase error in the day number costs almost nothing and every model agrees to about a hundredth of a degree. Near the equinoxes the declination sweeps through 0.395° per day and the same phase error becomes a large angular error. Sampled day by day at 12:00 UTC across 2020–2030, Cooper's peak deviation from the NOAA/Meeus value is 1.18° with an RMS of 0.53°, and Spencer's peak is 0.55° with an RMS of 0.29°. Spencer is roughly twice as good as Cooper, but both are an order of magnitude worse than the rigorous chain.

Turning declination into elevation, zenith angle and day length

Declination alone tells you nothing about the sky over your head. Combine it with latitude φ and hour angle H and you get the solar zenith angle θ:

Formula: cos ⁡ θ = sin ⁡ φ ⁢ sin ⁡ δ + cos ⁡ φ ⁢ cos ⁡ δ ⁢ cos ⁡ H

cosθ=sinφsinδ+cosφcosδcosH

Elevation is 90°θ. At solar noon the hour angle is zero and the expression collapses to the familiar

Formula: α_noon = 90 ° − | φ − δ |

αnoon=90°|φδ|

For the day length, NOAA solves the zenith equation for the hour angle at which the Sun's upper limb sits on the horizon, taking the standard 0.833° allowance for refraction plus the solar semi-diameter, so the zenith angle at sunrise is 90.833°:

Formula: H_0 = arccos ⁡ ((cos ⁡ 90.833 °) / (cos ⁡ φ ⁢ cos ⁡ δ) − tan ⁡ φ ⁢ tan ⁡ δ)

H0=arccos(cos90.833°cosφcosδtanφtanδ)

Day length in hours is 2H0/15, because the Earth turns 15° of hour angle per hour. When the argument of the arccosine falls below −1 the Sun never sets and you have midnight sun; when it exceeds +1 the Sun never rises and you have polar night. This calculator detects both cases explicitly instead of returning NaN.

Worked example: declination at 12:00 UTC on 21 June 2026 for a site at 40° N

Take the June solstice of 2026 and an observer at latitude 40.00° N. The Gregorian date 21 June 2026 at 12:00 UTC converts to Julian Day JD=2461213.0, which puts the time argument at T=0.264695 Julian centuries after J2000.0.

Feeding T through the polynomials gives a geometric mean longitude L0=89.7052° and a mean anomaly of 9886.3126°, which reduces to 166.3126° after removing whole turns. The equation of centre evaluates to C=+0.4437° — already twenty times larger than the whole error budget of the method, which is why dropping it is not an option. True longitude is therefore 90.1489°, and after the aberration and nutation correction the apparent longitude is λ=90.1454°.

The obliquity polynomial returns a mean obliquity of 23.4358° and, with the 0.00256° nutation term, a true obliquity of ε=23.4381°. The declination follows immediately:

Formula: δ = arcsin ⁡(sin ⁡ 23.4381 ° ⁢ sin ⁡ 90.1454 °) = + 23.4381 °

δ=arcsin(sin23.4381°sin90.1454°)=+23.4381°

Because the apparent longitude is within 0.15° of 90°, the sine is essentially 1 and the declination has all but reached the obliquity — the definition of a solstice. In degrees, minutes and seconds that is 23° 26′ 17″ N. The equation of time at the same instant is −1.82 minutes, meaning true solar noon runs about 1 minute 49 seconds later than mean solar noon at the observer's meridian.

Now bring in the latitude. Solar noon elevation is 90°|40.00°23.4381°|=73.44°, so the zenith angle at noon is 16.56° and the Sun passes 16.56° to the south of the observer's zenith — close, but never overhead, because 40° N lies outside the tropics. The sunrise hour angle works out to 112.61°, giving a day length of 15.01 hours, or 15 h 01 min. Contrast this with the Cooper value for the same day, +23.4498°: only 0.012° adrift here at the solstice, but the same formula is 0.82° adrift on 23 September, which would shift the computed sunrise hour angle at 40° N by more than a degree, or roughly four minutes of clock time.

Interpreting the result and where the number actually gets used

Read the sign first. Positive declination means the subsolar point — the one place on Earth where the Sun is exactly overhead — lies in the northern hemisphere; negative means it lies in the southern. The magnitude tells you the latitude of that subsolar point. On 21 June 2026 the Sun is directly overhead somewhere along the 23.44° N parallel, which is the modern position of the Tropic of Cancer. Because the obliquity is shrinking by 0.013° per century, the tropics are creeping toward the equator by about 14 metres a year, and published tropic latitudes drift accordingly.

For fixed photovoltaic arrays, the tilt that puts a south-facing panel normal to the beam at solar noon is |φδ|, not the latitude alone. At 40° N that is 16.6° at the June solstice and 63.4° at the December solstice — a 47° annual swing, which is exactly why seasonally adjusted racking exists and why an annual-average fixed tilt close to the latitude is a compromise rather than an optimum. For tracker control, shading studies, daylight autonomy modelling and skylight sizing, the declination is the input that sets the entire seasonal envelope.

The equation of time reported alongside declination is a different quantity that is easily confused with it. It is the difference between apparent solar time and mean solar time, in minutes, and it comes from the same eccentricity and obliquity that shape the declination curve. Plotting declination against the equation of time over a year traces the analemma — declination on the vertical axis, equation of time on the horizontal.

Limitations of this declination model and the assumptions built into the page

Several assumptions are baked in, and being explicit about them is more useful than claiming a precision the method does not have.

Frequently asked questions about solar declination

Is the solar declination angle the same as the Sun's elevation angle?

No. Declination is the Sun's angular distance north or south of the celestial equator and depends only on the instant in time, not on where you stand. Elevation is the Sun's height above your horizon and additionally needs your latitude and the hour angle. The two are linked only at solar noon, where elevation equals 90 degrees minus the absolute difference between latitude and declination.

Why does this page not use the 23.45 degree Cooper equation for its headline number?

The Cooper (1969) sine approximation fixes the obliquity at 23.45 degrees, ignores the eccentricity of Earth's orbit and assumes a 365-day year, so its day number slips against the real seasons across leap years. Compared day for day against the NOAA algorithm at 12:00 UTC over 2020 to 2030 it deviates by up to 1.18 degrees. This page still reports the Cooper value for reference, but the headline result comes from the NOAA/Meeus algorithm.

How accurate is the declination reported by this calculator?

The engine reproduces every intermediate column of the NOAA Solar Calculations spreadsheet to better than one billionth of a degree, and Meeus quotes roughly 0.01 degrees for the low-precision solar longitude it is built on. Checked against the worked example in NREL/TP-560-34302, whose stated uncertainty is plus or minus 0.0003 degrees, this page's declination for 17 October 2003 at 19:30:30 UT differs by 0.0015 degrees.

What is the obliquity of the ecliptic in 2026, and is it really 23.45 degrees?

No. The mean obliquity in mid-2026 is 23.4358 degrees and the nutation-corrected true obliquity is 23.4381 degrees. Obliquity is not a constant: the Meeus polynomial used here has a linear term of minus 46.815 arcseconds per Julian century, or about 0.013 degrees per century, so the textbook 23.45 degrees is a rounded value that has been drifting out of date for decades.

Which sign convention do latitude and declination use here?

Both are degrees positive to the north and negative to the south, matching the NOAA spreadsheet. A declination of plus 23.44 degrees puts the Sun overhead at the Tropic of Cancer and minus 23.44 degrees puts it overhead at the Tropic of Capricorn. Enter southern latitudes as negative numbers, for example minus 33.87 for Sydney.

Does the time of day matter when computing solar declination?

More than most published tables admit. Near an equinox the declination moves about 0.395 degrees per day, so quoting midnight instead of noon shifts the answer by roughly 0.2 degrees, which is twenty times the error budget of the algorithm itself. This calculator therefore takes a UTC time as well as a date and defaults to 12:00 UTC.

Sources

The declination, obliquity and equation-of-time chain implemented here was transcribed cell by cell from the primary sources below and checked numerically against them.

Deviation statistics quoted on this page (Cooper 1.18° peak, Spencer 0.55° peak over 2020–2030 at 12:00 UTC) were measured directly by evaluating all three models day by day against the NOAA/Meeus chain; they are our own measurements, not figures quoted from a third party.

Gregorian calendar date, years 1600 to 2400.
Coordinated Universal Time, not your local clock. Defaults to 12:00 UTC.
Used only for noon elevation, zenith angle and day length. Southern latitudes are negative.

Solar declination Enter a date and press Calculate.

Declination through the selected year

The curve below plots the NOAA/Meeus declination at 12:00 UTC for every day of the selected year, with your chosen date marked. Toggle the two day-number approximations on to see exactly where they drift — the gap opens up around the equinoxes, where the curve is steepest.

Select a date to draw the annual curve.

Sun Chaser mini-game

Ride the Sun’s seasonal swing. Once you have run a calculation the beam is anchored on the physically correct noon tilt for your latitude and declination, |φ − δ|, and then drifts and gusts around it. Hold the panel inside the glow to build charge. Arrow keys or W/S steer, tap and drag works on touch, Space starts a run, and R resets.

Click to play — keep the panel in the glow! Arrow keys or tap/drag set the tilt. Hold the beam to build charge. Begin a 90-second chase

Target noon tilt |φ − δ|

Run a calculation to anchor the beam on real geometry.
Alignment ready. Press play to start charging.

Charge accrues fastest inside ±6° of the beam and falls to zero beyond 28°. Gusts nudge the Sun — recover quickly.

Tilt guide: a fixed panel facing the equator is normal to the noon beam at |latitude − declination|.