Skip to content
Online Compass

Sun Compass: Find True North From the Sun's Position

Calculate the sun's current azimuth and elevation from your coordinates and device time. The page also shows moon bearing, sunrise, and sunset, giving devices without a magnetometer a visible true-north reference.

3060120150210240300330NNEESESSWWNW
true-north chart

The dial is fixed to true north. Point the top of the phone at the sun and read its bearing off the marker.

Sun bearing
—
Needs your position
Sun elevation
—
Sunrise
—
Sunset
—
Moon bearing
—
Needs your position
Moon phase
—

Your position

Sun and moon bearings depend on your coordinates and the time, so this tool needs a position.

Finding north without a magnetometer

  1. Read the sun's bearing above. It is computed, not measured.
  2. Stand so the sun is directly in front of you.
  3. You are now facing that bearing. Subtract it from 360° to know how far to turn left to face north.

This works on any device with a clock and a position, including laptops and older tablets that have no compass sensor. It is also the check to run when a magnetic compass reads oddly near vehicles, power lines, or reinforced concrete.

How a sun compass works

The sun follows a predictable apparent path across the sky. Its position at a given moment depends on date, time, latitude, and longitude. This page applies astronomical algorithms based on methods published by Jean Meeus to calculate solar azimuth around the horizon and elevation above or below it.

Azimuth is measured clockwise from true north. A result of 90° places the sun due east, 180° due south, and 270° due west. If you face the sun, you face that true bearing. The difference between the bearing and 0° tells you how far to turn toward north.

The same calculation provides sunrise and sunset conditions. Near the polar circles, the sun may remain above or below the horizon all day, so a sunrise or sunset value may not exist.

  1. 1

    Set a position

    Allow location access or enter coordinates. Check that the device date and time are correct.

  2. 2

    Read solar azimuth

    The bearing is clockwise from true north: 90° is east, 180° south, and 270° west.

  3. 3

    Use the sun as a reference

    Face the visible sun at its displayed bearing, then turn by the required angle to face north.

Why use the sun instead of a magnetometer

A magnetic compass can be distorted by vehicles, reinforced concrete, speakers, wiring, magnets, and local magnetic material. The solar calculation does not read Earth's magnetic field, so those objects do not change the computed bearing.

The sun compass also works on most laptops and desktops because it needs coordinates and time rather than a compass sensor. You can type coordinates manually when the browser cannot supply a location. The visible sun is still required to orient yourself physically from the calculation.

Cloud, buildings, darkness, and unsafe viewing conditions can prevent a useful sighting. Never look directly at the sun through binoculars, a telescope, a camera viewfinder, or magnifying optics. Use its general position or a clear shadow.

Sun and moon bearing for your location

The tool calculates where the sun and moon are right now. A negative elevation means the object is below the horizon. Moon phase describes the illuminated fraction, while bearing identifies its direction around the horizon.

The direction of sunrise depends on season and latitude. The sun rises due east only around the equinoxes. At other times, sunrise occurs north or south of east. The live azimuth answers “which direction does the sun rise?” for the current date and location.

For prayer direction, the Qibla finder combines the bearing to Mecca with a sun or moon reference. With a magnetic compass, compare its correction using the declination calculator.

Accuracy and limitations

The calculated solar coordinates are more precise than most people can point by eye. Practical accuracy is limited by coordinate accuracy, device time, the ability to identify the sun's centre or a shadow direction, and physical alignment.

The page uses the clock on your device. A wrong date, time, or time zone changes the position. Manual coordinates in another time zone require care because sunrise and sunset are formatted using the device clock even though the celestial calculation uses the instant correctly.

Use this tool as a navigation reference and cross-check when possible. For route finding where an error could affect safety, carry an appropriate map and compass and avoid relying on one battery-powered device.

Frequently asked questions

Which direction does the sun rise?

The sun rises generally in the east, but its exact azimuth shifts north or south of east with season and latitude. The live result uses your date and coordinates.

Where is the sun right now?

Allow location access or enter coordinates. The page shows current solar bearing and elevation; a negative elevation means the sun is below the horizon.

Does the sun compass work on a laptop?

Yes. It needs a position and correct time, not a magnetometer. Enter coordinates manually if the laptop cannot supply location.

Can I navigate by the moon?

The page calculates moon bearing and elevation too. Pointing is often harder than with the sun, so treat it as a secondary reference and cross-check when possible.

More free tools

Learn how to use these readings in our navigation guides.