Precision Solar Alignment Instrument

Maximise solar yield
with geometry.

Enter your location, lock the sun's direction with your compass, and SolMax calculates the exact tilt, panel facing direction, and two-leg stand angles that capture the most sunlight — from first-principles astronomy, right in your browser. Free, no cloud, no data collection.

Smart Solar Geometry

Uses standard solar-position equations (declination, hour angle, incidence) to find your optimal panel angle — no API calls, no cloud dependency.

🧭

Live Sun Compass

Point your device at the sun to see its exact position on a compass. Lock the sun direction for optimum panel facing.

📐

Stand Angle Calculator

Get exact angles for the two-leg stand: front leg, back leg, base width, and leg heights — ready for installation.

How it works

1
Enter your location Use GPS or type coordinates. Your latitude drives the whole calculation — and activates the live Sun Compass.
2
Set fitting height & roof type Choose roof or ground mounting, set roof type (pitched/slope), and adjustment type (stationary/movable).
3
Lock sun direction & calculate Use the compass to lock the sun's real-time direction, fetch weather, then calculate optimal alignment and stand angles.
SolMax computes tilt, direction, and row spacing optimized for annual, winter, or summer yield.

How to use SolMax

A step-by-step walkthrough — from location to optimised panel alignment.

1LocationGPS or coordinates
2Fitting HeightRoof or ground
3Roof & PanelsType, tilt, wattage
4Sun CompassLock sun direction
5WeatherClouds, temp, soiling
6CalculateOptimal alignment & stand angles
1

Enter your location

your lat equator latitude angle GPS auto-detect Manual coordinates

SolMax needs your latitude and longitude — these are the only inputs that drive the solar geometry. Your latitude determines how high the sun climbs in your sky throughout the year.

Two ways Tap "Use my current location" for instant GPS coordinates, or enter latitude/longitude manually. Either way unlocks the live Sun Compass and updates the elevation chart above.

The sun chart shows three curves — winter solstice, equinox, and summer solstice. The higher a curve reaches, the more direct sunlight your panels receive on those days. Once you have a location, the chart becomes specific to your latitude.

2

Set fitting height

ROOF 11 ft default GROUND

Roof mounting

Panels are installed on your rooftop. Default first-floor height is 11 feet. This is the most common residential setup.

Ground mounting

Panels are installed on a standalone frame on the ground. This gives full freedom of angle and direction, but requires more space and structural support.

Height matters The fitting height affects wind exposure, structural requirements, and maintenance access. Higher installations need stronger mounting hardware.
3

Set roof type & panel specs

90° pitch flush mount tilt frames

Roof type

Pitched — standard sloped roof with a consistent angle. Slope — gently sloped or low-pitch roof that may need special mounting.

Adjustment type

Stationary — panels are fixed to the roof through a stand at a set angle. Movable — panels can be adjusted or re-angled seasonally.

Roof facing compass

Drag the needle or tap a compass letter to set the direction your roof slopes toward. This matters because a south-facing roof (in the northern hemisphere) gets the most total sunlight.

Panel wattage

Enter your panel's nameplate power rating in watts. Typical residential panels range from 350W to 500W. This is used alongside the geometry and weather data to estimate your energy yield.

4

Use the Sun Compass & Lock Direction

N S W E YOU SUN Red = your heading · Yellow = sun's position

Once your location is set, the Sun Compass appears automatically. Rotate your device and watch two needles track in real time:

  • Red needle — the direction you're currently pointing your device (from the built-in compass sensor).
  • Yellow needle — the sun's exact position in the sky right now, calculated from your coordinates and the current time.
Lock the sun direction Tap "Lock Sun Direction" to capture the current sun azimuth. This locks in the optimum direction your panels should face, and will be used in the final calculation.

The locked direction appears on the results compass, showing you exactly which way to orient your panels for maximum energy capture.

5

Adjust for weather

Cloud cover Daytime temperature Days since rain (soiling)

Solar geometry assumes clear skies, but real weather reduces output. Adjust three sliders to match your site:

  • Cloud cover — average percentage. 0% = desert clear, 100% = permanent overcast. The default of 35% approximates a mild climate. Fetch real data with one click.
  • Daytime temperature — panels lose efficiency above 25°C. Hot climates see 8–15% power loss on summer afternoons.
  • Days since rain — dust and dirt accumulate on dry panels, blocking light. Rain washes them clean. 7 days is a typical default.
One-click fetch Tap "Fetch typical weather for my location" to pull real 7-day average data from Open-Meteo (free, no API key). Adjust further if your site is unusual.
6

Calculate & interpret results

TILT 30° DIRECTION S 180° SUN HOURS/DAY 5.2 hrs Month-by-month breakdown J M J S

Tap "Calculate optimal alignment" — SolMax runs a two-stage brute-force search across all possible tilts and directions to find the combination that maximizes sunlight capture for your chosen priority.

Understanding the outputs

  • Tilt angle — how far the panel leans back from flat. Steeper tilts favour low winter sun; shallower tilts favour high summer sun.
  • Direction (azimuth) — the compass direction the panel faces. This matches your locked sun direction for optimum energy capture.
  • Effective sun-hours/day — the average daily equivalent of full-intensity, straight-on sunlight after accounting for geometry, weather, and system losses.
  • Stand angles — the exact angles for the two-leg stand: front leg (vertical) and back leg (angled to achieve the tilt), plus the base width and leg heights.

Reading the charts

  • Sun elevation chart — shows how high the sun gets at every hour for winter solstice, equinox, and summer solstice. The 10° dashed line marks the altitude below which light is too scattered to be useful.
  • Bar chart — effective sun-hours per month. The tallest bar shows the best month. The pattern across the year tells you if your array is balanced.
  • Month table — exact numbers for each month: productive window, day length, and effective hours.
Optimization priority Annual = best total across the whole year (the safe default). Winter = steeper tilt for low winter sun. Summer = shallower tilt for high summer sun.

The science in one page

LATITUDE DECLINATION HOUR ANGLE ALTITUDE AZIMUTH INCIDENCE PANEL TILT PANEL AZIMUTH OPTIMUM RESULT

SolMax uses standard solar-position equations from the solar engineering literature (Duffie & Beckman, 2013). The calculation chain is straightforward:

  1. Solar declination — where the sun is north/south of the equator on a given day (varies from −23.45° to +23.45° through the year).
  2. Hour angle & day length — how far east or west the sun is from the local meridian. Sunrise to sunset defines the daylight window.
  3. Solar altitude & azimuth — the sun's height above the horizon and its compass direction at any moment.
  4. Angle of incidence — the master equation. It combines latitude, declination, hour angle, panel tilt, and panel azimuth into one number representing how "straight-on" the sunlight hits your panel.

The optimiser evaluates thousands of (tilt, azimuth) combinations across representative days for every month, picks the best one, then refines with finer resolution around the winner. The result is the static tilt and direction that captures the most sunlight for your chosen priority.

Quick reference

GPS location — most accurate. Auto-detects timezone.
Fitting height — Roof (default 11ft) or Ground mounting.
Sun Compass — Point device at sun, then lock direction.
Roof type — Pitched or Slope. Stationary or Movable adjustment.
Weather fetch — one click pulls real data from Open-Meteo.
Priority — Annual (best total), Winter (steeper), Summer (shallower).
Results — tilt, direction, stand angles, effective sun-hours/day.
Feedback — submit actual production data to help refine the model.

Ready to optimise your solar array?

Open the tool  →
SUN ELEVATION ACROSS THE DAY— awaiting location —

How high the sun climbs above the horizon at different times of year — low curves mean long shadows and shorter productive windows, high curves mean more direct light.

Dec 21 (winter solstice) Equinox Jun 21 (summer solstice) ┄ 10° usable-light threshold
1

Location

Your latitude determines the sun's height in the sky all year — the single biggest factor in panel angle.

2

Fitting Height

Where will the panels be installed? This affects wind exposure and structural requirements.

Typical first floor height is 11 feet
3

Roof & panels

Tells the instrument what you're mounting to, and your panel specification.

0° = flat, 90° = a vertical wall. Most house roofs are 15–40°
180° South Drag the needle, or tap a letter, to set the direction your roof faces.
4

Weather & environment

Local conditions affect real-world output. Adjust these to match your site, or fetch typical data (free, no API key).

Clear35%Overcast
Recommended alignment
Direction
Tilt angle
°
Row spacing
Peak sun hours/day

Effective sun-hours by month

Month-by-month detail

MonthSun windowDay lengthEffective hrs

Important notes

    Help SolMax improve — self-learning

    About SolMax

    Understanding the science behind your solar panel alignment

    The problem it solves

    Solar panels produce the most energy when sunlight hits them straight-on — perpendicular to the panel surface. The ideal angle changes constantly as the sun moves across the sky and shifts in declination throughout the year. SolMax finds the fixed tilt and direction that captures the most sunlight across the entire year (or for a specific season), based purely on the geometry of your location.

    How the calculation works

    SolMax uses standard solar-position equations from the solar engineering literature (Duffie & Beckman, 2013). At its core are four key quantities:

    Solar declination The sun's latitude in the sky, ranging from −23.45° (winter solstice) to +23.45° (summer solstice). This is what drives the seasons and determines how high the sun gets at your latitude.
    Hour angle & day length The sun's angular position east or west of the local meridian. SolMax computes sunrise/sunset hour angles to find the productive daylight window for every day of the year.
    Solar altitude How high the sun is above the horizon. Below 10° altitude, the atmosphere scatters too much light to be useful for power generation — SolMax only counts energy when the sun is above this threshold.
    Angle of incidence The angle between the sun's rays and a line perpendicular to your panel surface. This is the master equation: it combines latitude, declination, hour angle, panel tilt, and panel azimuth (direction) into a single number that represents how "directly" the sun hits your panel at any moment.

    The optimization algorithm

    SolMax uses a two-stage brute-force search that is both accurate and fast:

    • Stage 1 — Sweeps all possible directions (0–360° in 10° steps) and tilts (0–90° in 5° steps) at a coarse time resolution (8 samples/hour) to find the promising region.
    • Stage 2 — Refines around the best candidate with 2° azimuth steps and 1° tilt steps at finer time resolution (3 samples/hour) for a precise optimum.

    For each candidate (tilt, azimuth), SolMax integrates the cosine of the incidence angle across every daylight period on representative days for every month (the "Klein average days"), weighting by month length. The result is a single number representing total effective sun-hours per year (or per season, depending on your chosen priority).

    Row spacing

    When panels are arranged in multiple rows, the row in front can cast a shadow on the row behind when the sun is low. SolMax calculates the minimum spacing using the worst-case solar altitude at solar noon on the winter solstice — the lowest the sun ever gets at your latitude. This guarantees no inter-row shading on any day of the year.

    Limitations

    • SolMax models geometry only — where the sun is, how long it's up, and how directly it strikes a surface. It assumes clear skies.
    • It does not model cloud cover, humidity, air pollution, dust, or shading from nearby trees and buildings.
    • Clock times use standard time and your location's astronomical solar noon — add an hour during daylight saving time if your region observes it.
    • Treat results as an optimal-aiming guide, not a kWh/year guarantee. Always have a licensed installer verify structural load, wiring, and local codes before mounting.

    Data sources

    The solar-position algorithms are based on the standard equations presented in:

    • Duffie, J. A., & Beckman, W. A. (2013). Solar Engineering of Thermal Processes (4th ed.). Wiley.
    • Cooper, P. I. (1969). "The absorption of radiation in solar stills." Solar Energy, 12(3), 333–346. (Klein's average-day approximation.)
    • NOAA Solar Calculator — for independent verification of solar-position values.

    No external APIs, no server calls, no data collection. Everything runs in your browser.

    Contact

    Questions, suggestions, or feedback? We'd love to hear from you.

    Open source

    SolMax is free and open source. Contributions, issues, and feature requests are welcome on GitHub.

    Send a message