Home Calculators Categories Category: Science & Engineering

Solar Irradiance Calculator

This calculator performs two separate tasks: a clear-sky estimate of horizontal irradiance for a place, date and time, and a component-based calculation of horizontal and tilted-panel irradiance from direct and diffuse radiation you supply. Both report irradiance in W/m², and the second also converts it to incident energy per area in kWh/m².

Input
Load a reproducible calculation; these examples are not site weather data.

Clear-sky horizontal estimate only. No weather, elevation, refraction or shading data. All times use your stated UTC offset.

North positive, south negative.

North positive, south negative.

East positive, west negative. Coordinates are entered manually; no geocoding.

East positive, west negative. Coordinates are entered manually; no geocoding.

Local calendar date, 2000–2100.

Local calendar date, 2000–2100.

Use the local clock time at your coordinates.

Use the local clock time at your coordinates.

Local time minus UTC, including daylight saving. India +5.5; New York winter −5, summer −4.

Local time minus UTC, including daylight saving. India +5.5; New York winter −5, summer −4.

Visual
Sun elevation and panel cross section with irradiance comparison. Compass differences affect intensity, not this side view.
Output
Global horizontal irradiance
—

Haurwitz clear-sky estimate using approximate geometric sun position.

—
Solar elevation above horizon

What the calculator computes

Irradiance is the power of solar radiation arriving on a unit area, measured in W/m². Which irradiance you get depends on the surface it is measured on, so the calculator uses a few standard quantities:

Quantity Symbol Meaning
Global horizontal irradiance GHIGHI Total radiation on a horizontal surface (direct beam projected onto the horizontal plus diffuse sky radiation)
Direct normal irradiance DNIDNI Beam radiation on a surface perpendicular to the sun's rays
Diffuse horizontal irradiance DHIDHI Scattered sky radiation on a horizontal surface
Plane-of-array irradiance GPOAG_{POA} Total radiation on the front face of a tilted panel

The calculator opens in Simple mode, and Advanced is selected separately. Switching modes keeps your entries, but the modes do not feed each other. Advanced does not inherit solar geometry from the Simple estimate and does not split a Simple GHI into DNI and DHI. Only the inputs of the active mode affect the result and its validation. Results update as you change inputs, and the Reset button restores every default and returns to Simple mode. All units are SI.

The calculations are deterministic and run in your browser using JavaScript floating-point numbers. The calculation logic makes no calls to a weather, geocoding, historical-radiation or solar-resource service. That is a statement about where the maths runs, not a promise that the page works offline.

Estimating clear-sky irradiance by location

Simple mode answers one question: what horizontal irradiance would a cloudless sky produce at this place and local instant? It returns two results: GHI rounded to the nearest whole W/m², and the geometric solar elevation above the horizon to one decimal place.

Simple-mode inputs

Input Interpretation Accepted range Default
Latitude Degrees, north positive, south negative −90 to 90 0
Longitude Degrees, east positive, west negative −180 to 180 0
Local date Gregorian date at the location 2000-01-01 to 2100-12-31 2026-03-20
Local time Local clock time, HH:MM 00:00 to 23:59 12:00
UTC offset Hours, local time minus UTC −12 to 14 0

Coordinates are typed in by hand. The calculator does not look up addresses or infer a time zone, and it does not apply daylight saving. If daylight saving is in effect at your location on that date, include it in the UTC offset. For example, a location on UTC+1 in winter that observes daylight saving is on UTC+2 in summer.

The sliders use finer or coarser increments for convenience (0.1° for coordinates, 0.25 h for the offset), but any finite value inside the inclusive range is accepted. Valid zeros are accepted, including a latitude of 0 or an offset of 0.

How the Simple estimate is calculated

Solar position comes from NOAA's short fractional-year approximation. Let nn be the day of the year starting at 1, YY the number of days in the year (365 or 366), and hh the local clock time in decimal hours. The fractional-year angle in radians is

γ=2πY(n−1+h−1224)\gamma = \frac{2\pi}{Y}\left(n - 1 + \frac{h - 12}{24}\right)

The equation of time EE (minutes) and solar declination δ\delta (radians) are Fourier-style series in γ\gamma:

E=229.18 [ 0.000075+0.001868cos⁡γ−0.032077sin⁡γ−0.014615cos⁡2γ−0.040849sin⁡2γ ]E = 229.18\,[\,0.000075 + 0.001868\cos\gamma - 0.032077\sin\gamma - 0.014615\cos 2\gamma - 0.040849\sin 2\gamma\,]
δ=0.006918−0.399912cos⁡γ+0.070257sin⁡γ−0.006758cos⁡2γ+0.000907sin⁡2γ−0.002697cos⁡3γ+0.00148sin⁡3γ\delta = 0.006918 - 0.399912\cos\gamma + 0.070257\sin\gamma - 0.006758\cos 2\gamma + 0.000907\sin 2\gamma - 0.002697\cos 3\gamma + 0.00148\sin 3\gamma

With longitude λ\lambda (degrees, east positive) and UTC offset oo (hours), the hour angle in radians is

H=[60h+E+4λ−60o4−180]π180H = \left[\frac{60h + E + 4\lambda - 60o}{4} - 180\right]\frac{\pi}{180}

The longitude term corrects for where the location sits relative to the time-zone meridian, and the equation of time corrects for the sun running ahead of or behind mean solar time through the year. Combining these with latitude φ\varphi gives the vertical component of the sun direction, which equals the cosine of the geometric solar zenith:

c=sin⁡φ sin⁡δ+cos⁡φ cos⁡δ cos⁡Hc = \sin\varphi\,\sin\delta + \cos\varphi\,\cos\delta\,\cos H
α=arcsin⁡(clamp(c, −1, 1))\alpha = \arcsin\big(\mathrm{clamp}(c,\,-1,\,1)\big)

Here α\alpha is the displayed solar elevation, converted to degrees. The clamp guards against floating-point values marginally outside [−1,1][-1, 1].

The clear-sky horizontal estimate uses the Haurwitz relationship:

GHIclear=1098 c exp⁡ ⁣(−0.059c)for c>0GHI_{\text{clear}} = 1098\,c\,\exp\!\left(-\frac{0.059}{c}\right) \quad \text{for } c > 0

and GHIclear=0GHI_{\text{clear}} = 0 when c≤0c \le 0, that is, when the sun is at or below the horizon. Haurwitz is a one-input model: it needs only the solar zenith and has no inputs for turbidity, humidity, altitude or cloud.

One implementation detail matters for interpretation. Haurwitz is normally written with the apparent zenith, which includes atmospheric refraction. This calculator uses the approximate geometric zenith without refraction.

Worked example: equator, March noon

The built-in preset "Equator · March noon" uses latitude 0°, longitude 0°, date 2026-03-20, time 12:00 and UTC offset 0. It displays a GHI of 1034 W/m² and a solar elevation of 87.9°. The date is near the March equinox, so the sun is almost overhead at the equator at solar noon, and the elevation is close to, but not exactly, 90°. With c=sin⁡87.9∘≈0.9993c = \sin 87.9^\circ \approx 0.9993, the formula gives roughly 1098×0.9993×e−0.059/0.9993≈10341098 \times 0.9993 \times e^{-0.059/0.9993} \approx 1034 W/m².

Reading the Simple result

The result is a clear-sky estimate for one instant. It is not current measured sunlight, a weather forecast, historical radiation, a monthly average or an annual solar-resource figure. The model leaves out:

  • clouds, aerosols and water-vapour variability;
  • site altitude;
  • atmospheric refraction;
  • terrain and obstruction shading.

The solar geometry is also approximate.

When the derived elevation is below 10°, including at night, the calculator shows a warning. Clear-sky estimates near the horizon are uncertain, irradiance is zero once the sun is below the horizon, and measured radiation data should be used for site decisions.

Global horizontal irradiance formula

In Advanced mode you supply the solar zenith zz, DNIDNI and DHIDHI, all describing the same instant. The beam component projects onto the horizontal plane in proportion to cos⁡z\cos z, and the diffuse component already refers to a horizontal surface, so

GHI=DNI⋅cos⁡z+DHIGHI = DNI \cdot \cos z + DHI

This is the standard closure relation among the three quantities. The implementation sets cos⁡z=0\cos z = 0 exactly at z=90∘z = 90^\circ, so floating-point residue does not leave a tiny spurious beam term at the horizon.

Input Unit Accepted range Default
Solar zenith Degrees from vertical (0° overhead, 90° at the horizon) 0 to 90 60
DNIDNI W/m² 0 to 1500 800
DHIDHI W/m² 0 to 1500 100

With the defaults, GHI=800×0.5+100=500GHI = 800 \times 0.5 + 100 = 500 W/m². The 1500 W/m² bounds are limits on what the calculator will accept. They do not describe typical or maximum physical conditions at any site.

Solar panel irradiance on a tilted surface

For a tilted panel, Advanced mode adds three inputs: panel tilt β\beta from horizontal (0° flat, 90° vertical), the sun–panel azimuth difference ΔA\Delta A, and ground reflectance (albedo) ρ\rho. The azimuth input is a relative angle between the compass direction the sun lies in and the direction the panel faces: 0° means aligned and 180° means opposite. It is not an absolute compass bearing. The calculator uses it only in the intensity calculation, and the side-view diagram does not show compass orientation.

The cosine of the angle between the sun's rays and the panel's front-face normal is

ci=cos⁡z cos⁡β+sin⁡z sin⁡β cos⁡ΔAc_i = \cos z\,\cos\beta + \sin z\,\sin\beta\,\cos\Delta A

and the front-face plane-of-array irradiance is the sum of three terms:

GPOA=DNI⋅max⁡(0, ci)+DHI⋅1+cos⁡β2+GHI⋅ρ⋅1−cos⁡β2G_{POA} = DNI\cdot\max(0,\,c_i) + DHI\cdot\frac{1 + \cos\beta}{2} + GHI\cdot\rho\cdot\frac{1 - \cos\beta}{2}
Term Physical meaning Modelling assumption
DNI⋅max⁡(0, ci)DNI\cdot\max(0,\,c_i) Direct beam on the panel front Zero when the sun is behind the panel plane
DHI⋅(1+cos⁡β)/2DHI\cdot(1+\cos\beta)/2 Sky diffuse radiation Isotropic (uniform) sky
GHI⋅ρ⋅(1−cos⁡β)/2GHI\cdot\rho\cdot(1-\cos\beta)/2 Radiation reflected from the ground Lambertian ground, scaled by albedo

When the beam incidence is negative, the beam term is clipped to zero. The diffuse and ground-reflected terms remain. A horizontal panel (β=0∘\beta = 0^\circ) gives GPOA=GHIG_{POA} = GHI within floating-point precision. Zero DNIDNI and zero DHIDHI give zero irradiance. The default albedo of 0.2 is an assumption, not a measured site value, and surfaces such as fresh snow or dark roofing differ widely from it.

Worked example: the default tilted panel

With the Advanced defaults (zenith 60°, DNIDNI 800, DHIDHI 100, tilt 30°, azimuth difference 0°, albedo 0.2):

  • ci=0.5cos⁡30∘+sin⁡60∘sin⁡30∘≈0.8660c_i = 0.5\cos 30^\circ + \sin 60^\circ \sin 30^\circ \approx 0.8660, so the beam term is about 692.82 W/m².
  • The diffuse term is 100×(1+0.8660)/2≈93.30100 \times (1 + 0.8660)/2 \approx 93.30 W/m².
  • The ground term is 500×0.2×(1−0.8660)/2≈6.70500 \times 0.2 \times (1 - 0.8660)/2 \approx 6.70 W/m².

The unrounded total is about 792.820 W/m², displayed as 793 W/m². A panel tilted 30° toward the sun intercepts more than the 500 W/m² on the horizontal plane because its surface is closer to perpendicular to the beam.

Worked example: the effect of azimuth

Keep the same inputs but set the azimuth difference to 90°. Then cos⁡ΔA=0\cos\Delta A = 0 and ci=0.5cos⁡30∘≈0.4330c_i = 0.5\cos 30^\circ \approx 0.4330. The beam term falls to about 346.41 W/m², and with the unchanged diffuse and ground terms the total is about 446.41 W/m², displayed as 446 W/m². The GHIGHI is still 500 W/m² because it does not depend on panel orientation.

A case where the night rule does not apply

In Simple mode, a sun below the horizon means zero GHI. Advanced mode takes the zenith as given, so its results do not follow that rule. Take an illustrative input of zenith 90°, DNIDNI 600 W/m², DHIDHI 50 W/m², tilt 90°, azimuth difference 0°, albedo 0.2. The horizontal beam projection is zero, so GHI=50GHI = 50 W/m². The vertical panel faces the sun directly, so ci=sin⁡90∘sin⁡90∘cos⁡0∘=1c_i = \sin 90^\circ \sin 90^\circ \cos 0^\circ = 1, and

GPOA=600+50⋅1+02+50⋅0.2⋅1−02=630 W/m2G_{POA} = 600 + 50\cdot\frac{1 + 0}{2} + 50\cdot 0.2\cdot\frac{1 - 0}{2} = 630\ \text{W/m}^2

The values here are chosen to show the geometry; they are not site data. The point is that a vertical or steeply tilted surface can receive direct beam when the horizontal surface receives none.

Solar radiation conversion: from W/m² to kWh/m²

Advanced mode also converts the panel irradiance to incident radiant energy per area, assuming the irradiance is held constant for a stated duration tt (0 to 24 h, default 1 h):

E=GPOA⋅t1000E = \frac{G_{POA}\cdot t}{1000}

where EE is in kWh/m², GPOAG_{POA} in W/m² and tt in hours. The calculation uses the unrounded irradiance and displays the result to three decimal places. For the default inputs, E=792.820×1/1000≈0.793E = 792.820 \times 1 / 1000 \approx 0.793 kWh/m². A zero duration gives zero energy while the irradiance is unchanged.

The built-in preset "Horizontal · measured example" uses zenith 60°, DNIDNI 800, DHIDHI 100, tilt 0°, azimuth difference 0°, albedo 0.2 and a duration of 2 h. Both GHIGHI and panel irradiance are 500 W/m², and the displayed energy is 1.000 kWh/m².

For unit context outside the calculator: 1 kWh equals 3.6 MJ, so 1 kWh/m² corresponds to 3.6 MJ/m². The calculator itself displays kWh/m² only.

This is a unit conversion at one irradiance level, not a daily-insolation estimate. It does not integrate the sun's movement or changing weather through a day, and it is not an annual-yield forecast.

Limitations and appropriate use

  • Simple and Advanced are independent. Haurwitz GHI alone cannot be uniquely split into DNIDNI and DHIDHI, so the calculator does not do so or pass a decomposition into Advanced. For tilted-surface work, bring DNIDNI, DHIDHI and zenith values from the same instant, such as from measured or modelled radiation data.
  • Advanced is a geometric transposition, not a performance model. It assumes a uniform diffuse sky and Lambertian ground. It omits shading, rear-side (bifacial) radiation, detailed surrounding reflections, angle-dependent optical losses, panel efficiency and electrical losses. It does not estimate photovoltaic electricity production.
  • Displayed precision is not accuracy. Rounding to whole W/m² or three decimals reflects display resolution. It says nothing about measurement accuracy or model uncertainty.
  • Site decisions need measured or resource data. Use the outputs for learning, sanity checks and comparing geometries, not as a substitute for measured radiation or solar-resource datasets.

Validation, diagram and output options

The calculator rejects unsupported modes or unit systems, non-finite or out-of-range active inputs, impossible calendar dates and malformed times. When an active field is invalid, it shows a linked error, replaces numeric results with em dashes, shows an invalid-input message in the diagram and disables copying. Inactive-mode fields are not validated.

The interactive SVG diagram shows a sun-elevation side view, a panel cross section and irradiance bars. In Simple mode it shows a horizontal surface and a GHI bar. In Advanced mode it shows the panel tilt, horizontal versus panel irradiance bars and a constant-duration energy annotation. The diagram supports pan, zoom and reset.

Copy produces a formatted summary of the active inputs, result units and assumptions; in Advanced mode it includes panel irradiance and constant-irradiance energy. Print / PDF uses your browser's printing function. CSV download and a dedicated share-URL feature are not available.

Frequently asked questions

Does the calculator use live weather or satellite data?

No. Calculations run locally in the browser from the values you enter. Simple mode gives a cloudless-sky estimate, so it will usually exceed what a cloudy or hazy sky delivers.

Why is my result zero at night?

In Simple mode, when the computed sun is at or below the horizon (c≤0c \le 0), the Haurwitz estimate is zero. A warning also appears whenever the elevation is below 10°.

Do I need to adjust for daylight saving time?

Yes. The UTC offset is entered by you and must already include daylight saving where it applies. The calculator does not infer time zones from coordinates.

Is the azimuth input a compass direction?

No. It is the angle between the sun's azimuth and the panel-facing azimuth, from 0° (sun directly in front of the panel's facing direction) to 180° (sun directly behind it).

Why does a tilted panel get more than GHI in the example?

Tilting toward the sun raises the beam component on the panel face. The default case yields about 793 W/m² on the panel versus 500 W/m² on the horizontal plane. When the sun is off-axis or behind the panel, the panel value can be lower than GHI.

Can I use the kWh/m² result as daily solar energy?

No. It assumes the same irradiance for the whole duration you enter, so it is a constant-level conversion rather than a daily or annual total.

Calculation Methodology Documented

Read the formula definitions, supported input ranges, and limitations before using this estimate.

Review Methodology
Debjeet Bhowmick
Author Debjeet Bhowmick AWS Certified Solutions Architect • Cloud & DevOps Consultant

AWS Certified Solutions Architect Professional and Senior Cloud & DevOps Consultant with over 14 years of hands-on expertise architecting resilient cloud infrastructure across AWS, GCP, and Azure. Specializes in infrastructure as code, continuous delivery automation, and telemetry across Terraform, Ansible, Docker, Kubernetes, ELK, Python, and SQL. Creator of OrangeCalc, delivering client-side high-precision computational tools.