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 LookupImage ResizerLine CounterFPS ConverterSort NumbersRelative Standard Deviation CalculatorBatting Average CalculatorRemove SpacesMAC Address GeneratorFacebook User ID LookupERA CalculatorWord to Phone Number ConverterMAC Address LookupRandom Quote GeneratorSum CalculatorFeet and Inches to Cm ConverterRandom Truth or Dare GeneratorSun, Moon & Rising Sign Calculator 🌞🌙✨Slope and Grade Calculator⬛ Aspect Ratio Calculator📷 OCR / Image to TextPercent Off CalculatorInvisible Text GeneratorMercury Retrograde CalendarSHA256 Hash GeneratorMerge VideosRandom Superpower GeneratorOPS CalculatorRandom Birthday GeneratorVertical Jump CalculatorNumber of Digits CalculatorAudio SplitterSquare Root (√) CalculatorCm to Feet and Inches ConverterRandom IMEI GeneratorMP3 LooperRandom Credit Card GeneratorLog Base 10 CalculatorRoman Numerals ConverterMaster Number CalculatorRandom Poker Hand GeneratorBitwise CalculatorRandom Fake Address GeneratorFile Size ConverterRandom Activity GeneratorSaturn Return CalculatorYouTube Channel StatisticsOn Base Percentage CalculatorCompound Growth CalculatorHalfway Date CalculatorWord Ladder GeneratorPhone Number ExtractorSalary Conversion CalculatorCaffeine Overdose CalculatorRandom Writing Prompt Generator🖱️ Click CounterAI Text HumanizerRandom Meal GeneratorBattery Life CalculatorImage SplitterSlugging Percentage CalculatorText FormatterOctal CalculatorBinary to Gray Code ConverterNumber to Word ConverterRandom Movie PickerStair CalculatorCompare Two StringsAdd Text to ImageIP Subnet CalculatorWeight Loss CalculatorDecimal to BCD ConverterSun Position Calculator📅 Date CalculatorVideo to Image ExtractorWAR CalculatorBroken Link CheckerPercent Growth Rate CalculatorFirst n Digits of PiProportion CalculatorSHA512 Hash GeneratorVideo CompressorRandom Loadout GeneratorLottery Number GeneratorDay of the Year Calculator - What Day of the Year Is It Today?Word Scramble GeneratorBCD to Decimal ConverterBcrypt Hash Generator / CheckerGray Code to Binary ConverterBreak Line by CharactersConnect the Dots GeneratorRandom Emoji GeneratorTime Duration CalculatorCM to Inches ConverterBingo Card GeneratorYouTube Tag ExtractorWHIP CalculatorEmail ExtractorLeap Years ListAcreage CalculatorLong Division CalculatorAI Punctuation AdderArc Length CalculatorQuotient and Remainder CalculatorLove Compatibility CalculatorList of Prime NumbersMartingale Strategy CalculatorRemove AccentNumber ExtractorSocial Media Username CheckerRemove Leading Trailing SpacesSmall Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾What is my Zodiac Sign?Cone Flat Pattern (Template) Generator🎰 Gacha Pity CalculatorFlip VideoIP Address to Hex ConverterDistance Between Two Points CalculatorLunar Calendar ConverterHebrew Calendar ConverterAPI TesterAI Language DetectorMD5 Hash GeneratorModulo CalculatorRatio to Percentage CalculatorWhat is my Lucky Number?Random Time GeneratorVideo SplitterSourdough CalculatorRandom Group GeneratorDay of Year CalendarURL ExtractorRandom Tournament Bracket GeneratorAstrological Element Balance CalculatorAI ParaphraserImage CompressorRandom Chord GeneratorRandom Object GeneratorColor InverterList RandomizerName RandomizerPER CalculatorBinary to BCD ConverterRemove Lines Containing...Sum of Positive Integers CalculatorPerfect Number Checker🔍 Plagiarism CheckerRatio CalculatorRandom User-Agent GeneratorSort Lines AlphabeticallyRandom Number PickerBolt Torque CalculatorYouTube Comment PickerHeight Percentile CalculatorAdd Prefix and Suffix to TextMolarity Calculator🔊 Tone GeneratorLinear Programming SolverHTML CompressorRemove Audio from Video1099 Tax CalculatorBoiling Point CalculatorRandomize NumbersAmortization CalculatorCollage MakerMiter Angle Calculator⚔️ DPS CalculatorRandom Chess Opening GeneratorCoin FlipperEffect Size CalculatorDMS to Decimal Degrees ConverterPercentile CalculatorAdjust Video SpeedBeer Chill Time CalculatorRandom Math Problem GeneratorMandelbrot Set ExplorerOutlier CalculatorIP Address to Binary ConverterPercent to PPM ConverterArithmetic Sequence CalculatorFraction CalculatorPVIFA CalculatorSteel Weight CalculatorDecibel (dB) CalculatorDestiny Number CalculatorMAC Address AnalyzerRandom Name GeneratorBCD to Binary ConverterRandom PIN GeneratorReverse VideoRMD CalculatorAngel Number CalculatorPartition Function CalculatorTrigonometric Equation SolverTwitter/X Timestamp ConverterSigma Notation Calculator (Summation)Hex to BCD ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorHypotenuse CalculatorActual 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 GeneratorMarkup CalculatorPVIF CalculatorName Number CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterYouTube 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 CalculatorBernoulli Equation CalculatorHeat Transfer CalculatorThermal Expansion CalculatorSpecific Heat Capacity CalculatorGear Ratio Calculator (Mechanical)Pulley System CalculatorHydraulic Cylinder Force CalculatorBelt Length CalculatorCloset Capsule CalculatorStorage Unit Size CalculatorMoving Box Quantity CalculatorGift Card Tip CalculatorGas vs Electric Cost ComparisonPrint Cost CalculatorHair Dye Mixing CalculatorLaundry Detergent Dosage CalculatorDishwasher Load OptimizerTile Grout CalculatorPaint Color Mixing CalculatorFlashcard Spaced Repetition SchedulerLearning Curve CalculatorCornell Notes GeneratorVocabulary Quiz GeneratorLanguage Learning Hours to Fluency CalculatorCollege Cost CalculatorScholarship ROI CalculatorAI Recipe Generator (From Ingredients)AI Gift Idea GeneratorAI Meal Plan GeneratorAI Workout Plan GeneratorAI Reading List GeneratorAI Travel Itinerary GeneratorAI Excuse Generator (Polite)AI Apology Letter WriterAI Unit Converter (Natural Language)AI Resume / CV AnalyzerAI Text Tone AnalyzerAI Data Visualizer (Paste CSV)AI Regex GeneratorAI SQL Query GeneratorPaycheck Calculator (Take-Home Pay)VA Loan CalculatorARM Mortgage CalculatorBiweekly Mortgage Payment CalculatorPMI CalculatorMortgage Points CalculatorBalloon Loan CalculatorInterest-Only Mortgage CalculatorConstruction Loan CalculatorLand Loan CalculatorBoat Loan CalculatorRV Loan CalculatorMotorcycle Loan CalculatorCar Affordability CalculatorOut-the-Door Price CalculatorRent Affordability CalculatorProrated Rent CalculatorRent Increase CalculatorMileage Reimbursement CalculatorPer Diem CalculatorInvoice GeneratorSalary Raise CalculatorSeverance Pay CalculatorHSA Calculator529 College Savings CalculatorI Bond CalculatorT-Bill CalculatorCD Ladder CalculatorCredit Utilization CalculatorLoan Comparison CalculatorGross-Up CalculatorSWP CalculatorRD CalculatorPPF CalculatorEPF CalculatorNPS CalculatorGratuity CalculatorHRA Exemption CalculatorUK Stamp Duty CalculatorZakat CalculatorTithe CalculatorBetting Odds ConverterPayPal Fee CalculatorStripe Fee CalculatorEtsy Fee CalculatoreBay Fee CalculatorAmazon FBA CalculatorShopify Profit CalculatorWholesale Price CalculatorCraft Pricing CalculatorDepreciation CalculatorEOQ CalculatorReorder Point CalculatorSafety Stock CalculatorFIFO / LIFO CalculatorContribution Margin CalculatorWorking Capital CalculatorCost Per Lead CalculatorEmail Marketing ROI CalculatorTip Pooling CalculatorWeek Number CalculatorAnniversary CalculatorHalf Birthday CalculatorSobriety CalculatorRetirement Countdown