Simplify Your Workflow: Search MiniWebtool.
Add Extension
Home Page > Miscellaneous > Astronomy Tools > Sun Position Calculator

Sun Position Calculator

Calculate the sun's azimuth (compass direction) and elevation (altitude above the horizon) for any date, time, and geographic location. See the sun plotted on an interactive sky dome, trace the full day's sun path, and get sunrise, solar noon, sunset, day length, shadow length, and the current solar phase with a step-by-step astronomical breakdown.

Sun Position Calculator
Quick examples — click to fill the form, then press Calculate:

Embed Sun Position Calculator Widget

About Sun Position Calculator

The Sun Position Calculator tells you exactly where the sun is in the sky — its azimuth (compass direction) and elevation (height above the horizon) — for any date, time, and location on Earth. It plots the sun on an interactive sky dome, traces the entire day's sun path, and reports sunrise, solar noon, sunset, day length, shadow length, and the current solar phase. It is perfect for photographers chasing golden hour, gardeners planning sunlight, solar-panel installers, architects, and anyone curious about the sky.

What Are Solar Azimuth and Elevation?

The sun's position is described with two angles. Azimuth is the horizontal compass direction to the sun, measured clockwise from true north: 0° points north, 90° east, 180° south, and 270° west. Elevation (also called altitude) is the vertical angle of the sun above the horizon, ranging from 0° at the horizon to 90° straight overhead at the zenith. With both angles you can point to the exact spot the sun occupies in the sky.

Sun Position Formula

The calculator follows the standard NOAA solar position algorithm. The key relationships are:

Solar Elevation (Altitude)
$$\sin(h) = \sin\phi \, \sin\delta + \cos\phi \, \cos\delta \, \cos H$$
Solar Azimuth
$$\cos(A) = \frac{\sin\phi \, \cos z - \sin\delta}{\cos\phi \, \sin z}$$

Here \(h\) is the elevation, \(A\) is the azimuth, \(z = 90^\circ - h\) is the zenith angle, \(\phi\) is your latitude, \(\delta\) is the sun's declination, and \(H\) is the hour angle. The declination and the equation of time come from the date; the hour angle comes from the true solar time at your longitude. A small atmospheric refraction correction is then added to the elevation so the value matches what you actually observe.

How to Read the Sky Dome

The sky dome is a top-down map of the sky above you. The outer rim is the horizon (elevation 0°) and the centre is the point straight overhead (the zenith, elevation 90°). Compass directions run around the edge — north at the top, east on the right, south at the bottom, west on the left. The glowing dot is the sun's current position, and the trail of small gold dots is the full path the sun travels across that day, from sunrise on one side to sunset on the other.

Sun Elevation and the Time of Day

Sun ElevationPhaseWhat It Means
Above 6°DaytimeFull daylight; the sun is comfortably above the horizon
0° to 6°Golden HourLow, warm light — ideal for photography
0° (at horizon)Sunrise / SunsetThe sun is crossing the horizon
0° to −6°Civil TwilightEnough light for most outdoor activity
−6° to −12°Nautical TwilightHorizon faint; brighter stars visible
−12° to −18°Astronomical TwilightSky nearly dark; faint stars appear
Below −18°NightFull astronomical darkness

What You Can Use It For

📷 Photography

Find golden hour and blue hour, and know exactly where the sun will be for backlighting and shadows.

🔆 Solar Panels

Use elevation and azimuth to set the best panel tilt and orientation, and spot shading through the day.

🌱 Gardening

See how much direct sun a bed receives across the day and seasons to place plants wisely.

🏛️ Architecture

Plan windows, overhangs, and shading for daylight and passive solar heating.

🥾 Outdoor Planning

Predict shadow length and remaining daylight for hikes, events, and field work.

🔭 Astronomy

Check when the sun is far enough below the horizon for dark-sky observing.

How to Use This Calculator

  1. Enter your location: Type your latitude and longitude, click a quick-example city, or use the "Use My Location" button to fill in your coordinates.
  2. Set the date and time: Choose the date and local clock time, then select the matching UTC time-zone offset.
  3. Click Calculate: The tool computes the sun's azimuth and elevation instantly.
  4. Review your results: See the sun on the sky dome, the day's sun path, sunrise and sunset, day length, shadow length, and a full step-by-step breakdown.

Frequently Asked Questions

What are solar azimuth and elevation?

Azimuth is the sun's compass direction measured clockwise from true north, where 0 degrees is north, 90 is east, 180 is south and 270 is west. Elevation (also called altitude) is the angle of the sun above the horizon, from 0 degrees at the horizon to 90 degrees straight overhead. Together they pinpoint exactly where the sun appears in the sky.

How is the sun's position calculated?

The calculator uses the standard NOAA solar position algorithm. From the date it computes the sun's declination and the equation of time, combines them with your local time to get the hour angle, then applies your latitude and longitude to find elevation and azimuth. A small atmospheric refraction correction is added so the result matches what you actually see.

What is the difference between azimuth and elevation?

Azimuth tells you which horizontal direction to look (the compass bearing), while elevation tells you how high to look (the angle above the horizon). You need both to describe the sun's position completely: azimuth points you the right way, and elevation tells you how far up to tilt your gaze.

Why is solar noon not at 12:00 on the clock?

Solar noon is the moment the sun crosses the local meridian and reaches its highest point. It rarely lands on 12:00 because your longitude usually sits east or west of your time zone's central meridian, and because the equation of time shifts the sun up to about 16 minutes earlier or later through the year. The calculator reports the true solar noon for your exact location.

How do I find the sun's position for solar panels?

Enter your site's coordinates and check the elevation and azimuth at the times of day that matter for your installation. The elevation tells you the ideal panel tilt, and the azimuth shows the direction to face. Tracing the day's sun path also reveals when nearby buildings or trees might cast shade on your array.

How long is the shadow of an object?

Shadow length equals the object's height divided by the tangent of the sun's elevation. When the sun is high the shadow is short, and as the sun drops toward the horizon the shadow grows very long. The calculator shows the shadow multiplier and the shadow cast by a 1.8 metre (about 6 foot) person for your chosen moment.

Additional Resources

Reference this content, page, or tool as:

"Sun Position Calculator" at https://MiniWebtool.com/sun-position-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: June 14, 2026

Related MiniWebtools:

Astronomy Tools:

Top & Updated:

Random PickerRandom Name PickerInstagram User ID LookupFPS ConverterLine CounterRelative Standard Deviation CalculatorSort NumbersMAC Address GeneratorBatting Average CalculatorRemove SpacesImage ResizerERA CalculatorFacebook User ID LookupRandom Truth or Dare GeneratorWord to Phone Number ConverterFeet and Inches to Cm ConverterMAC Address LookupSun, Moon & Rising Sign Calculator 🌞🌙✨Sum CalculatorMP3 LooperPercent Off CalculatorSlope and Grade CalculatorBitwise CalculatorAudio SplitterRandom Credit Card GeneratorRoman Numerals ConverterInvisible Text GeneratorWord Ladder GeneratorRandom Quote GeneratorRandom IMEI GeneratorNumber of Digits CalculatorAI Text HumanizerLog Base 10 CalculatorSHA256 Hash GeneratorSquare Root (√) CalculatorOPS CalculatorCm to Feet and Inches Converter📷 OCR / Image to TextMerge VideosRandom Superpower GeneratorMaster Number CalculatorOn Base Percentage CalculatorVertical Jump CalculatorHalfway Date Calculator⬛ Aspect Ratio CalculatorPhone Number ExtractorSlugging Percentage CalculatorRandom Activity GeneratorSalary Conversion CalculatorSaturn Return CalculatorFile Size ConverterRandom Fake Address GeneratorRandom Birthday GeneratorRandom Poker Hand GeneratorRandom Meal GeneratorWAR CalculatorText FormatterBinary to Gray Code ConverterRandom Movie PickerCompound Growth CalculatorCaffeine Overdose CalculatorOctal CalculatorLeap Years ListNumber to Word ConverterRandom Loadout GeneratorName Number CalculatorCompare Two StringsRandom Writing Prompt Generator📅 Date CalculatorLove Compatibility CalculatorVideo to Image ExtractorCM to Inches ConverterStair CalculatorDecimal to BCD ConverterIP Subnet CalculatorBattery Life CalculatorBCD to Decimal ConverterAdd Prefix and Suffix to TextPER CalculatorAdd Text to ImageConnect the Dots GeneratorWhat is my Lucky Number?Quotient and Remainder Calculator🖱️ Click CounterPercent Growth Rate CalculatorYouTube Channel StatisticsFirst n Digits of PiImage CompressorArc Length CalculatorImage SplitterMercury Retrograde CalendarBingo Card GeneratorRemove AccentRandom Object GeneratorURL ExtractorAcreage CalculatorDay of the Year Calculator - What Day of the Year Is It Today?Gray Code to Binary ConverterList of Prime NumbersWeight Loss CalculatorOutlier CalculatorSmall Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾🎰 Gacha Pity CalculatorSHA512 Hash GeneratorVideo CompressorRemove Leading Trailing SpacesWhat is my Zodiac Sign?IP Address to Hex ConverterWHIP CalculatorAstrological Element Balance CalculatorTime Duration CalculatorLottery Number GeneratorBinary to BCD ConverterAI Language DetectorRandom User-Agent GeneratorFlip VideoHeight Percentile CalculatorMartingale Strategy CalculatorBreak Line by CharactersMorse Code GeneratorRandom Time GeneratorNumber ExtractorAngel Number CalculatorCone Flat Pattern (Template) GeneratorList RandomizerProportion CalculatorP/E Ratio CalculatorDay of Year CalendarSum of Positive Integers CalculatorRandom Chord GeneratorLife Path Number CalculatorVideo SplitterModulo CalculatorRandom Emoji GeneratorRandom Number PickerDestiny Number CalculatorPVIF CalculatorLong Division CalculatorBcrypt Hash Generator / CheckerMultiple Fraction CalculatorAI Punctuation AdderRandom Line PickerFraction CalculatorPVIFA CalculatorRandom PIN GeneratorYouTube Tag ExtractorAntilog CalculatorRandom Chess Opening GeneratorCollage MakerAdjust Video SpeedColor InverterPercent to PPM ConverterBonus CalculatorRandom Group GeneratorLog (Logarithm) CalculatorFirst n Digits of eTrigonometric Equation SolverEmail ExtractorSquare Numbers ListRatio to Percentage CalculatorTaco Bar CalculatorHypotenuse CalculatorMAC Address AnalyzerMandelbrot Set ExplorerShort Selling Profit CalculatorAI ParaphraserExponential Decay Calculator🔍 Plagiarism CheckerSteel Weight Calculator🎮 Game Sensitivity ConverterWord Scramble GeneratorYouTube Comment PickerLongest Day of the YearGrade CalculatorMiter Angle CalculatorRandomize NumbersHebrew Calendar ConverterName RandomizerLunar Calendar ConverterSocial Media Username CheckerBoxing Punch Power CalculatorNonogram Generator (Picross)Multiplication CalculatorNumber RandomizerBoiling Point CalculatorDecking CalculatorStandard Error CalculatorDue Date CalculatorRock Paper Scissors GeneratorCoin FlipperDMS to Decimal Degrees ConverterPercentile CalculatorCatalan Number GeneratorRandom Tournament Bracket GeneratorRatio CalculatorRandom Name GeneratorCrossword Puzzle MakerField Goal Percentage CalculatorSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorAverage CalculatorReverse VideoRemove Audio from VideoActual Cash Value CalculatorScientific Notation to Decimal ConverterLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterConvolution CalculatorRandom String GeneratorAmortization CalculatorMarkup CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterTwitter/X Timestamp ConverterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorSocial Media Post Time OptimizerCTR CalculatorROAS CalculatorInfluencer ROI CalculatorForce CalculatorAcceleration CalculatorVelocity CalculatorMomentum CalculatorProjectile Motion CalculatorKinetic Energy CalculatorPotential Energy CalculatorWork and Power CalculatorDensity CalculatorPressure CalculatorIdeal Gas Law CalculatorFree Fall CalculatorTorque CalculatorHorsepower CalculatorDilution CalculatorChemical Equation BalancerStoichiometry CalculatorPercent Yield CalculatorEmpirical Formula CalculatorTitration CalculatorMole/Gram/Particle ConverterIrregular Polygon Area CalculatorFrustum CalculatorTorus Calculator3D Distance CalculatorGreat Circle Distance CalculatorCircumscribed Circle (Circumcircle) CalculatorInscribed Circle (Incircle) CalculatorAngle Bisector CalculatorTangent Line to Circle CalculatorHeron's Formula CalculatorCoordinate Geometry Distance CalculatorVolume of Revolution CalculatorSurface of Revolution CalculatorParametric Curve GrapherRiemann Sum CalculatorTrapezoidal Rule CalculatorSimpson's Rule CalculatorImproper Integral CalculatorL'Hôpital's Rule CalculatorMaclaurin Series CalculatorPower Series CalculatorSeries Convergence Test CalculatorInfinite Series Sum CalculatorAverage Rate of Change CalculatorInstantaneous Rate of Change CalculatorRelated Rates SolverOptimization Calculator (Calculus)Gradient Calculator (Multivariable)Divergence CalculatorCurl CalculatorLine Integral CalculatorSurface Integral CalculatorJacobian Matrix CalculatorNewton's Method CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorMatrix Multiplication CalculatorDot Product CalculatorCross Product CalculatorVector Magnitude CalculatorUnit Vector CalculatorAngle Between Vectors CalculatorNull Space CalculatorColumn Space CalculatorCramer's Rule CalculatorMatrix Diagonalization CalculatorQR Decomposition CalculatorCholesky Decomposition CalculatorMatrix Power CalculatorCharacteristic Polynomial CalculatorBayes' Theorem CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorNegative Binomial Distribution CalculatorGeometric Distribution CalculatorExponential Distribution CalculatorWeibull Distribution CalculatorBeta Distribution CalculatorSpearman Rank Correlation CalculatorFisher's Exact Test CalculatorContingency Table CalculatorOdds Ratio CalculatorROT13 Encoder/DecoderAtbash Cipher ToolVigenère Cipher ToolPronunciation IPA ConverterHemingway-Style Readability EditorSentence Length Variance AnalyzerWord Frequency AnalyzerBusiness Days CalculatorAdd Business Days to DateDate Pattern GeneratorHow Long Until CalculatorHow Long Ago CalculatorBirthday Across Cultures CalculatorHijri Calendar ConverterInsulin Sensitivity Factor CalculatorCarb-to-Insulin Ratio CalculatorLean Body Mass to Strength CalculatorOne-Mile Walk Test (Rockport) CalculatorCooper 12-Minute Run CalculatorFFMI CalculatorAPGAR Score CalculatorGlasgow Coma Scale CalculatorWells Score Calculator (DVT/PE)Tennis Score TrackerSoccer xG (Expected Goals) CalculatorCricket Run Rate CalculatorRugby Points CalculatorRace Time PredictorSwimming SWOLF CalculatorYoga Pose Hold TimerFishing Knot Strength CalculatorBike Gear Ratio CalculatorClimbing Grade ConverterWine Pairing SuggesterStandard Drink CalculatorCaffeine Half-Life TrackerSpice Substitution FinderDietary Restriction Recipe FilterMarinade Time CalculatorFermentation Time CalculatorSmoking Wood Pairing GuideFreelance Project Pricing CalculatorSaaS Pricing CalculatorSubscription Cost TrackerSide Hustle ROI CalculatorRemote Work Savings CalculatorCoffee Habit Cost CalculatorGym vs Home Workout Cost CalculatorLunch Cost CalculatorWealth Growth Visualizer1031 Exchange CalculatorRental Yield CalculatorCash-on-Cash Return CalculatorBRRRR Method CalculatorSection 8 Rent CalculatorRoommate Rent SplitterAirbnb Pricing OptimizerStatute of Limitations CalculatorSentence Reduction CalculatorSales Tax Nexus CheckerPatent Filing Fee CalculatorTrademark Class FinderWill Asset Distribution CalculatorWorkers' Compensation CalculatorStopping Distance CalculatorTrip Cost SplitterVehicle Weight Distribution CalculatorTrailer Tongue Weight CalculatorTire Tread Wear CalculatorEngine Compression Ratio CalculatorHeadlight Beam Distance CalculatorCat Litter Box CalculatorAquarium Heater Wattage CalculatorBird Cage Size CalculatorReptile Habitat UVB CalculatorPet Travel Crate Size FinderHorse Hay CalculatorCrochet Hook Size ConverterKnitting Needle Size ConverterKnitting Pattern CalculatorCross-Stitch Floss CalculatorQuilt Binding CalculatorOrigami Paper Size CalculatorPottery Clay Shrinkage CalculatorBeading Pattern CalculatorResin Casting Volume CalculatorEmbroidery Thread Length CalculatorHiking Pace Calculator (Naismith's Rule)Backpacking Food Weight CalculatorTent Footprint Size CalculatorSleeping Bag Temperature Rating GuideKnot Tying Reference ToolStar Visibility CalculatorTide Time CalculatorSun Position CalculatorReynolds Number CalculatorBernoulli Equation Calculator