Calculate direct normal irradiance (DNI) from GHI, solar zenith angle and optional diffuse irradiance (DHI), or solve for GHI or the zenith angle.

Optional DHI subtracts diffuse light; leave it blank for a beam-only estimate (DHI = 0).

Measured from directly overhead; daytime range 0โ€“90ยฐ.

Diffuse irradiance (optional)
Blank means 0 (beam only). Enter measured DHI for a real-sky DNI.


Related Calculators

Direct Normal Irradiance (DNI) / Direct Normal Radiation (DNR) Formula

The calculator uses the beam-only approximation for solar irradiance on a horizontal surface. Enter diffuse horizontal irradiance (DHI) when you have it; left blank, DHI is assumed to be approximately zero, so GHI is treated as the horizontal component of DNI.

DNI โ‰ˆ (GHI) / (cos(ฮธ))
GHI โ‰ˆ DNI ร— cos(ฮธ)
ฮธ = arccos((GHI) / (DNI))

The more complete irradiance relationship is:

GHI = DNI ร— cos(ฮธ) + DHI
  • DNI = direct normal irradiance, also called direct normal radiation in some contexts
  • GHI = global horizontal irradiance
  • DHI = diffuse horizontal irradiance
  • θ = solar zenith angle, measured from directly overhead
  • cos(θ) = cosine of the solar zenith angle

Select DNI to divide GHI by cos(θ), GHI to multiply DNI by cos(θ), or solar zenith angle to use arccos(GHI / DNI). Use nonnegative irradiances and daytime angles from 0ยฐ to 90ยฐ; DNI cannot be inferred at the horizon. Radiation values are converted internally to W/mยฒ, and angles are converted internally to degrees before the calculation.

Solar Zenith Angle and Cosine Reference

The cosine of the solar zenith angle controls how much direct normal irradiance projects onto a horizontal surface. As the sun gets lower in the sky, cos(θ) gets smaller and the same DNI produces less GHI.

Solar zenith angle cos(θ) Approximate GHI if DNI = 1000 W/mยฒ
0ยฐ 1.000 1000 W/mยฒ
30ยฐ 0.866 866 W/mยฒ
45ยฐ 0.707 707 W/mยฒ
60ยฐ 0.500 500 W/mยฒ
80ยฐ 0.174 174 W/mยฒ

Irradiance Unit Conversions

Conversion Factor
W/ftยฒ to W/mยฒ multiply by 1 / 0.09290304 (approximately 10.7639)
W/mยฒ to W/ftยฒ multiply by 0.09290304
radians to degrees multiply by 180 / π
degrees to radians multiply by π / 180

Example Calculations

Example 1: Calculate DNI from GHI and solar zenith angle

Suppose GHI is 600 W/mยฒ and the solar zenith angle is 60ยฐ.

DNI โ‰ˆ (600) / (cos(60^ยฐ))
DNI โ‰ˆ (600) / (0.5) = 1200 W / mยฒ

The estimated DNI is 1200 W/mยฒ, assuming DHI is approximately zero.

Example 2: Calculate solar zenith angle from GHI and DNI

Suppose GHI is 707 W/mยฒ and DNI is 1000 W/mยฒ.

ฮธ = arccos((707) / (1000))
ฮธ = arccos(0.707) โ‰ˆ 45^ยฐ

The estimated solar zenith angle is about 45ยฐ.

FAQ

What is the difference between DNI, DNR, GHI, and DHI?

DNI is direct normal irradiance, measured on a surface kept perpendicular to the sunโ€™s rays. DNR is often used to mean direct normal radiation and is commonly treated the same way in this type of calculation. GHI is global horizontal irradiance, measured on a flat horizontal surface. DHI is diffuse horizontal irradiance, which is sunlight scattered by the atmosphere and received on a horizontal surface.

When can DHI be left blank?

A blank DHI uses the simplified relationship DNI โ‰ˆ GHI / cos(θ). That only works when the diffuse part of horizontal irradiance is small enough to ignore. In real sky conditions, especially cloudy, hazy, or partly cloudy conditions, DHI can be significant. In those cases, enter DHI so the calculator uses the complete formula GHI = DNI ยท cos(θ) + DHI.

Why can the calculation fail near a 90ยฐ solar zenith angle?

At a 90ยฐ solar zenith angle, the sun is on the horizon and cos(θ) equals zero. Since the DNI formula divides by cos(θ), the result is undefined at that angle. Near 90ยฐ, small measurement errors can also create very large DNI estimates, so results close to the horizon should be treated carefully.