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 | Total radiation on a horizontal surface (direct beam projected onto the horizontal plus diffuse sky radiation) | |
| Direct normal irradiance | Beam radiation on a surface perpendicular to the sun's rays | |
| Diffuse horizontal irradiance | Scattered sky radiation on a horizontal surface | |
| Plane-of-array irradiance | 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 be the day of the year starting at 1, the number of days in the year (365 or 366), and the local clock time in decimal hours. The fractional-year angle in radians is
The equation of time (minutes) and solar declination (radians) are Fourier-style series in :
With longitude (degrees, east positive) and UTC offset (hours), the hour angle in radians is
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 gives the vertical component of the sun direction, which equals the cosine of the geometric solar zenith:
Here is the displayed solar elevation, converted to degrees. The clamp guards against floating-point values marginally outside .
The clear-sky horizontal estimate uses the Haurwitz relationship:
and when , 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 , the formula gives roughly 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 , and , all describing the same instant. The beam component projects onto the horizontal plane in proportion to , and the diffuse component already refers to a horizontal surface, so
This is the standard closure relation among the three quantities. The implementation sets exactly at , 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 |
| W/m² | 0 to 1500 | 800 | |
| W/m² | 0 to 1500 | 100 |
With the defaults, 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 from horizontal (0° flat, 90° vertical), the sun–panel azimuth difference , and ground reflectance (albedo) . 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
and the front-face plane-of-array irradiance is the sum of three terms:
| Term | Physical meaning | Modelling assumption |
|---|---|---|
| Direct beam on the panel front | Zero when the sun is behind the panel plane | |
| Sky diffuse radiation | Isotropic (uniform) sky | |
| 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 () gives within floating-point precision. Zero and zero 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°, 800, 100, tilt 30°, azimuth difference 0°, albedo 0.2):
- , so the beam term is about 692.82 W/m².
- The diffuse term is W/m².
- The ground term is 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 and . 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 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°, 600 W/m², 50 W/m², tilt 90°, azimuth difference 0°, albedo 0.2. The horizontal beam projection is zero, so W/m². The vertical panel faces the sun directly, so , and
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 (0 to 24 h, default 1 h):
where is in kWh/m², in W/m² and in hours. The calculation uses the unrounded irradiance and displays the result to three decimal places. For the default inputs, kWh/m². A zero duration gives zero energy while the irradiance is unchanged.
The built-in preset "Horizontal · measured example" uses zenith 60°, 800, 100, tilt 0°, azimuth difference 0°, albedo 0.2 and a duration of 2 h. Both 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 and , so the calculator does not do so or pass a decomposition into Advanced. For tilted-surface work, bring , 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 (), 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.
Read the formula definitions, supported input ranges, and limitations before using this estimate.