
How to Square a Ground-Mounted Solar Array: A Trigonometry Guide for Perfect Pier Alignment
Learn how to square ground-mounted solar array piers using trigonometry. Master the Pythagorean theorem for perfect DIY solar installation alignment.
Best year-round and seasonal tilt angles from your latitude, plus the shade-free row spacing for ground-mount and flat-roof arrays.
Negative for the southern hemisphere
Enter your racking angle to size the row spacing for it
Total sloped length if panels are stacked two-high
Tip
Find your latitude by dropping a pin in any maps app. Spacing assumes level ground and rows running east to west; on a slope facing the equator you can space rows closer, on a slope facing away they need more room.
Best fixed year-round tilt
-
Winter solstice tilt
-
Summer solstice tilt
-
Spring / autumn tilt
-
Ground coverage ratio
-
Panel top height above its base
-
Design sun position (winter solstice)
-
Clear gap between rows
-
Row pitch (front to front)
-
A solar panel produces the most when sunlight strikes it at a right angle. The sun's height in the sky at solar noon is set by two numbers: your latitude and the sun's declination, which swings between −23.44° and +23.44° over the year because the Earth's axis is tilted by that amount.
noon sun elevation = 90° − latitude + declination
tilt that faces the noon sun = latitude − declination
winter solstice tilt = latitude + 23.44°
summer solstice tilt = latitude − 23.44°
Those seasonal angles are exact geometry. The single best angle for a panel that never moves is not: it depends on how much of your annual sunshine arrives in each season. The calculator uses a widely quoted fit, 0.76 × latitude + 3.1° between 25° and 50° latitude (0.87 × latitude below 25°), which lands a few degrees flatter than latitude because long summer days outweigh short winter ones. Treat it as a starting point and confirm the yield with a simulation tool such as NREL's PVWatts before you order racking.
| Latitude | Year-round (approx.) | Winter solstice | Equinox | Summer solstice | Noon sun elevation, winter solstice |
|---|---|---|---|---|---|
| 0° | 0.0° | 23.4° | 0.0° | 0.0° | 66.6° |
| 10° | 8.7° | 33.4° | 10.0° | 0.0° | 56.6° |
| 20° | 17.4° | 43.4° | 20.0° | 0.0° | 46.6° |
| 25° | 21.8° | 48.4° | 25.0° | 1.6° | 41.6° |
| 30° | 25.9° | 53.4° | 30.0° | 6.6° | 36.6° |
| 35° | 29.7° | 58.4° | 35.0° | 11.6° | 31.6° |
| 40° | 33.5° | 63.4° | 40.0° | 16.6° | 26.6° |
| 45° | 37.3° | 68.4° | 45.0° | 21.6° | 21.6° |
| 50° | 41.1° | 73.4° | 50.0° | 26.6° | 16.6° |
| 55° | 44.9° | 78.4° | 55.0° | 31.6° | 11.6° |
| 60° | 48.7° | 83.4° | 60.0° | 36.6° | 6.6° |
A tilted panel is the hypotenuse of a right triangle. Its top edge sits panel length × sin(tilt) above its base, and that height casts a shadow of height ÷ tan(sun elevation). Before and after noon the sun is off to one side, so only part of that shadow points toward the next row; multiplying by cos(azimuth) gives the part that matters.
height = panel length × sin(tilt)
sin(elevation) = sin(lat)·sin(dec) + cos(lat)·cos(dec)·cos(hour angle)
sin(azimuth) = cos(dec)·sin(hour angle) ÷ cos(elevation)
gap = height ÷ tan(elevation) × cos(azimuth)
row pitch = panel length × cos(tilt) + gap
The hour angle is 15° per hour from solar noon, so 9 am and 3 pm are both 45°.
Designing for noon only would need just 38.6 ÷ tan(31.56°) = 62.9 in of gap, but the rows would shade each other for most of a December morning and afternoon.
For a fixed array that stays at one angle all year, a tilt close to your latitude, or a few degrees flatter, gives the highest annual output. At 35° latitude that is about 30°. The exact optimum depends on your local weather: places with cloudy winters favour flatter tilts that harvest more summer sun. Small errors cost little: being 10° off typically loses only a few percent of annual energy.
A panel collects the most when it faces the sun squarely. At solar noon the sun's elevation is 90° − latitude + declination, so the panel tilt that points straight at it is latitude − declination. The declination is −23.44° on the winter solstice and +23.44° on the summer solstice, giving latitude + 23.44° in midwinter, latitude − 23.44° in midsummer, and exactly your latitude at the equinoxes.
Far enough that the front row's shadow does not reach the row behind during your chosen window on the winter solstice, the day with the longest shadows. The gap is panel height ÷ tan(sun elevation) × cos(sun azimuth), where panel height is panel length × sin(tilt). A common design window is 9 am to 3 pm solar time.
Most of a winter day's energy arrives in the six hours around solar noon, so keeping rows unshaded from 9 to 3 captures nearly all of it while leaving the spacing practical. Avoiding all shading at sunrise would require enormous gaps. If land or roof area is tight, 10 am to 2 pm is a common compromise.
Toward the equator: true south in the northern hemisphere and true north in the southern hemisphere. Use true (geographic) south, not magnetic south from a compass; the difference, called magnetic declination, is more than 10° in parts of North America.
GCR is panel length divided by the row-to-row pitch. It tells you how much of the ground the modules cover. Fixed-tilt arrays at mid latitudes usually land between 35% and 55%. A higher GCR fits more capacity on the site but increases winter shading.
Deepen your understanding of triangles and trigonometry with our guides and tutorials:

Learn how to square ground-mounted solar array piers using trigonometry. Master the Pythagorean theorem for perfect DIY solar installation alignment.

Master the 3-4-5 method and learn when square, plumb, and straight matter most. Essential geometry for construction, carpentry, and DIY projects.

Square your foundation perfectly using the 3-4-5 method and diagonal measurements. Step-by-step guide for garages, decks, sheds, and buildings.

Master trigonometry word problems with this step-by-step framework. Learn to identify patterns and solve lighthouse, angle, and distance problems confidently.

Discover why triangles are the strongest shape in engineering and construction. Learn how this geometric principle powers cranes, bridges, and iconic structures.

Master reference angles to evaluate sine, cosine, and tangent for any angle. Learn to simplify 315° and 5π/6 using quadrant rules and acute angle shortcuts.
Formulas and results last reviewed . How we check accuracy · Corrections log · Report an error