Simplify Your Workflow: Search MiniWebtool.
Add Extension
Related Tools
Moon Phase CalculatorStar Visibility CalculatorSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจSunrise & Sunset CalculatorTide Time Calculator
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

Astronomy Tools:

Top & Updated:

Instagram User ID LookupRandom Name PickerRandom PickerImage ResizerLine CounterFacebook User ID LookupJob FinderSort NumbersRelative Standard Deviation CalculatorRemove SpacesFPS ConverterSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจWord to Phone Number ConverterERA CalculatorMAC Address GeneratorMercury Retrograde Calendar๐Ÿ“ท OCR / Image to TextSlope and Grade Calculatorโฌ› Aspect Ratio CalculatorRandom Quote GeneratorBatting Average CalculatorMAC Address LookupPercent Off CalculatorSum CalculatorFeet and Inches to Cm ConverterRandom Truth or Dare GeneratorSHA256 Hash GeneratorMerge VideosRandom IMEI GeneratorRandom Credit Card GeneratorInvisible Text GeneratorAudio SplitterNumber of Digits CalculatorWeight Loss CalculatorPhone Number ExtractorSquare Root (โˆš) Calculator๐Ÿ–ฑ๏ธ Click CounterMP3 LooperVertical Jump CalculatorLog Base 10 CalculatorImage SplitterRandom Superpower GeneratorSalary Conversion CalculatorCaffeine Overdose CalculatorSun Position CalculatorBitwise CalculatorCm to Feet and Inches ConverterRandom Poker Hand GeneratorRandom Fake Address GeneratorRandom Writing Prompt GeneratorMaster Number CalculatorEmail ExtractorNumber to Word ConverterText FormatterWord Ladder GeneratorRandom Activity GeneratorRandom Movie PickerSaturn Return CalculatorFile Size ConverterOPS CalculatorRoman Numerals ConverterRandom Birthday GeneratorYouTube Channel StatisticsLong Division CalculatorBattery Life CalculatorAdd Text to ImageHalfway Date CalculatorSHA512 Hash GeneratorIP Subnet CalculatorSlugging Percentage CalculatorCompound Growth CalculatorStair CalculatorRandom Time GeneratorLunar Calendar ConverterSigma Notation Calculator (Summation)Random Meal GeneratorOctal CalculatorRandom Loadout GeneratorQuotient and Remainder CalculatorVideo CompressorOn Base Percentage CalculatorFirst n Digits of PiDecimal to BCD ConverterBreak Line by CharactersBCD to Decimal ConverterPercent Growth Rate Calculator๐Ÿ“… Date CalculatorHebrew Calendar ConverterBolt Torque CalculatorBcrypt Hash Generator / CheckerAcreage CalculatorVideo to Image ExtractorWord Scramble GeneratorBinary to Gray Code ConverterLeap Years ListBingo Card GeneratorArc Length CalculatorAPI TesterCompare Two StringsList of Prime NumbersGray Code to Binary ConverterName RandomizereBay Fee CalculatorRemove AccentIP Address to Hex ConverterMartingale Strategy CalculatorFlip VideoProportion CalculatorRandom User-Agent GeneratorOutlier CalculatorRandomize NumbersRandom Emoji GeneratorDice RollerMD5 Hash GeneratorRandom Chess Opening GeneratorWHIP CalculatorCone Flat Pattern (Template) GeneratorConnect the Dots GeneratorNumber ExtractorYouTube Tag ExtractorYouTube Thumbnail DownloaderRandom Number PickerWAR CalculatorRandom Tournament Bracket Generator๐ŸŽฐ Gacha Pity CalculatorDMS to Decimal Degrees Converter๐Ÿ” Plagiarism CheckerAI Language DetectorVideo SplitterTime Duration CalculatorURL ExtractorText Case ConverterCM to Inches ConverterPVIF CalculatorWhat is my Zodiac Sign?Trigonometric Equation SolverLottery Number GeneratorDay of the Year Calculator - What Day of the Year Is It Today?Random Group GeneratorSocial Media Username CheckerAmortization CalculatorBinary to BCD Converter1099 Tax CalculatorAstrological Element Balance CalculatorDecibel (dB) CalculatorSmall Text Generator โฝแถœแต’แต–สธ โฟ แต–แตƒหขแต—แต‰โพMolarity CalculatorAdd Prefix and Suffix to TextImage CompressorLove Compatibility CalculatorParabola CalculatorPVIFA CalculatorSum of Positive Integers CalculatorAI Text HumanizerShort Selling Profit CalculatorConvolution CalculatorBroken Link Checker๐Ÿ”Š Tone GeneratorAdjust Video SpeedPER Calculatorโš”๏ธ DPS CalculatorRandom Video Thumbnail GeneratorReverse TextTaco Bar CalculatorColor InverterRemove Leading Trailing SpacesWhat is my Lucky Number?Percent to PPM ConverterName Number CalculatorCrossword Puzzle MakerImage CropperFraction CalculatorLED Resistor CalculatorMAC Address AnalyzerWater Usage CalculatorGoldbach Conjecture VerifierDay of Year CalendarList of Fibonacci NumbersRandom Chord GeneratorSourdough CalculatorPercentage Increase CalculatorFirst n Digits of eRatio CalculatorRemove Audio from VideoList RandomizerTransformer CalculatorAI ParaphraserYouTube Comment PickerRandom Object GeneratorRatio to Percentage CalculatorReverse VideoHTML CompressorSquare Numbers ListModulo CalculatorAI Punctuation AdderSocial Media Post Time OptimizerVideo CropperArctan2 CalculatorSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorHypotenuse CalculatorActual Cash Value CalculatorScientific Notation to Decimal ConverterAngel Number CalculatorLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterRandom String GeneratorMarkup 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 CalculatorCTR 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 CalculatorBoiling Point 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 CalculatorBernoulli Equation CalculatorAP Score CalculatorAttendance Percentage CalculatorPercentage to CGPA ConverterCitation Generator (APA/MLA/Chicago)AI Quiz GeneratorAI Lesson Plan GeneratorInteractive Periodic TableElectron Configuration CalculatorLimiting Reactant CalculatorTheoretical Yield CalculatorHenderson-Hasselbalch CalculatorpKa to Ka ConverterMolality CalculatorNormality CalculatorPercent Composition CalculatorFreezing Point Depression CalculatorBoiling Point Elevation CalculatorOsmotic Pressure CalculatorNernst Equation CalculatorBeer-Lambert Law CalculatorGravitational Force CalculatorEscape Velocity CalculatorKepler's Third Law CalculatorTime Dilation CalculatorE=mcยฒ CalculatorPhoton Energy Calculatorde Broglie Wavelength CalculatorTerminal Velocity CalculatorBuoyancy CalculatorWave Speed CalculatorSpeed of Sound CalculatorMechanical Advantage CalculatorInclined Plane CalculatorFriction CalculatorResistors in Series CalculatorWatts to Amps CalculatorAmps to Watts CalculatorkVA Calculator3-Phase Power CalculatormAh to Wh ConverterGenerator Size CalculatorLumens to Watts ConverterLux to Lumens CalculatorRoom Lighting CalculatorInductive Reactance CalculatorSeries/Parallel Capacitor CalculatorConduit Fill CalculatorAntenna Length CalculatorCubic Yard CalculatorAsphalt CalculatorSod CalculatorGrass Seed CalculatorDeck Stain CalculatorSiding CalculatorBaseboard & Trim CalculatorBaluster Spacing CalculatorEpoxy Resin CalculatorWater Heater Size CalculatorPool Volume CalculatorPool Salt CalculatorPond Volume & Liner CalculatorTV Size CalculatorTV Mounting Height CalculatorPicture Hanging Height CalculatorRug Size CalculatorCurtain Size CalculatorCeiling Fan Size CalculatorDehumidifier Size CalculatorAir Purifier CADR CalculatorFirewood Cord CalculatorCouch Fit CalculatorEngine Displacement Calculator2-Stroke Oil Mix CalculatorOctane Mix CalculatorLease Buyout Calculator