Theory
Declination:
$$\delta = 23.45\sin\!\left(\frac{360}{365}(284+N)\right)$$
Solar altitude:
$$\sin\alpha_s = \sin\phi\sin\delta + \cos\phi\cos\delta\cos\omega$$
Hour angle: $\omega = 15(h-12)$ [°]
Enter latitude, day of year, tilt angle, and azimuth to compute solar altitude and beam irradiance in real time. Ideal for solar PV design and building energy analysis.
Declination:
$$\delta = 23.45\sin\!\left(\frac{360}{365}(284+N)\right)$$
Solar altitude:
$$\sin\alpha_s = \sin\phi\sin\delta + \cos\phi\cos\delta\cos\omega$$
Hour angle: $\omega = 15(h-12)$ [°]
The sun's position relative to Earth changes daily. The solar declination angle models the tilt of Earth's axis, defining how far north or south the sun is directly overhead.
$$\delta = 23.45\sin\!\left(\frac{360}{365}(284+N)\right)$$Where $\delta$ is the declination angle in degrees, and $N$ is the day of the year (1 = Jan 1). The 284 is an offset to align the sine function with the seasons (solstice is at N=172).
Given your location (latitude $\phi$) and time of day (hour $h$), the solar altitude $\alpha_s$ is calculated using spherical trigonometry. The hour angle $\omega$ converts local time into an angular distance from solar noon.
$$\omega = 15(h-12)$$ $$\sin\alpha_s = \sin\phi\sin\delta + \cos\phi\cos\delta\cos\omega$$Where $\phi$ is your latitude, $\delta$ is declination, and $\omega$ is the hour angle in degrees. The $\sin\alpha_s$ result is the sine of the sun's height above the horizon. When $\alpha_s = 90°$, the sun is directly overhead.
Photovoltaic (PV) System Design: Engineers use these exact calculations to optimize the tilt and orientation of solar panels for maximum annual energy yield. For a large solar farm, a small error in azimuth can lead to significant financial losses over the system's 25-year lifespan.
Building Energy Modeling: Architects and HVAC engineers calculate solar irradiance on building surfaces to predict heating/cooling loads. For instance, large south-facing windows (a specific azimuth) can provide passive solar heating in winter but may require shading in summer.
Agriculture and Ecology: The amount of solar radiation reaching the ground directly affects crop growth, evapotranspiration rates, and microclimates. Precision agriculture uses these models to plan planting and irrigation schedules.
Satellite Operations & Remote Sensing: Knowing the exact solar angles is critical for calibrating Earth-observing satellites. The illumination angle affects how surfaces reflect light, which must be accounted for to accurately interpret satellite imagery.
First, it's easy to overlook that "0° azimuth = true south" is based on true north, not magnetic north. The magnetic north measured by a compass deviates by several degrees (declination), requiring correction for precise design. For example, in Tokyo, the declination is approximately 7° west, so to face true south, you would need to orient your compass to about 187°. Next, understand that the "solar irradiance" values are theoretical clear-sky values. The tool models atmospheric attenuation (extraterrestrial radiation × atmospheric transmittance), but it does not include the effects of actual clouds, weather, or air pollution. In practice, you estimate actual power generation by multiplying these calculation results by a "sunshine percentage" or "cloud cover correction factor" derived from meteorological statistics. Finally, the optimal tilt angle changes depending on your "objective". For maximizing annual energy yield, an angle close to the latitude (e.g., 30-35° for Tokyo) is a good guideline. However, in northern regions prioritizing winter heat gain or snow shedding, angles above 60° are sometimes used. Conversely, if the main goal is reducing summer cooling load, you might set a near-horizontal angle below 10° to limit solar gain.
The calculation logic of this tool is applied as foundational technology across various engineering fields. First, in Building Environmental Engineering, it forms the core of energy conservation calculations. This very tilted surface solar irradiance is used as the initial input for calculating the "Solar Heat Gain Coefficient (SHGC)" of walls and windows and for "energy simulations" that compute annual heating and cooling loads. Next is its application in Materials Engineering and Reliability Engineering. For instance, in "weathering tests" for automotive exterior plastics and paints, it's necessary to evaluate the ultraviolet (UV) radiation dose, a primary cause of material degradation. When determining the UV intensity and exposure time to replicate in testing equipment, the local maximum solar irradiance and seasonal changes in solar altitude are referenced. Furthermore, in the field of Remote Sensing, it is indispensable for correcting satellite imagery. The amount of reflected light observed at the Earth's surface depends heavily on the solar altitude angle. Therefore, a "solar altitude angle correction" is applied to make the brightness values of images comparable. The formula for calculating the solar altitude angle α_s is precisely at the heart of this correction algorithm.
If you want to delve deeper into the background of these calculations, I first recommend learning the basics of spherical trigonometry. The solar altitude angle formula $\sin\alpha_s = \sin\phi \sin\delta + \cos\phi \cos\delta \cos\omega$ is the result of solving a "spherical triangle" connecting a point on the celestial sphere (the sun) and the observer using the law of cosines. Referring to chapters on "Astronomy" or "Geodesy" in textbooks will deepen your understanding. Next, explore the "beam and diffuse separation" model omitted from the tool. Actual solar radiation is separated into "beam radiation" coming directly from the sun, "diffuse radiation" from the entire sky, and "ground-reflected radiation." The contribution of these components changes complexly on a tilted surface. For example, diffuse light contributes significantly on a horizontal surface, while beam radiation becomes dominant on a vertical wall. Finally, as a step towards mastering tools at a practical level, try tackling "statistical processing of meteorological data". Using standard Typical Meteorological Year (TMY) data as input, calculate hourly solar irradiance over an entire year and perform monthly or seasonal aggregations. It is through this process that you will truly grasp the gap between "theoretical maximums" and "actual averages" and acquire genuinely useful simulation skills.