Simplify Your Workflow: Search MiniWebtool.
Add Extension
Related Tools
Golden Hour / Blue Hour CalculatorMoon Phase CalculatorStar Visibility CalculatorSun Position CalculatorTide Time Calculator
Home Page > Miscellaneous > Astronomy Tools > Sunrise & Sunset Calculator

Sunrise & Sunset Calculator

Calculate sunrise, sunset, solar noon, and day length for any location and date. See all the twilight phases (civil, nautical, astronomical), the photographer's golden hour and blue hour, how much the day length is changing each day, and an animated sun-path arc with a 24-hour day/night sky ribbon. Works worldwide from city presets or your own latitude and longitude.

Sunrise & Sunset Calculator
Quick examples โ€” click to fill the form, then press Calculate:
Decimal degrees. North is positive, South negative.
Decimal degrees. East is positive, West negative.
Add 1 hour if daylight saving time applies.

Embed Sunrise & Sunset Calculator Widget

About Sunrise & Sunset Calculator

The Sunrise & Sunset Calculator works out the exact times the Sun rises and sets for any location and date on Earth, along with solar noon, day length, every twilight phase, and the photographer's golden hour and blue hour. It also shows an animated sun-path arc, a 24-hour day/night sky ribbon, and how much the day length is changing from one day to the next.

How Sunrise and Sunset Are Calculated

Sunrise and sunset depend on where the Sun sits in the sky, which changes with your latitude, your longitude, and the date. The calculation follows the widely used NOAA solar position algorithm in three short steps.

Step 1 โ€” Solar Noon
$$\text{Solar Noon} = 720 - 4\lambda - E + \Delta_{tz}\ (\text{minutes})$$
Step 2 โ€” Hour Angle
$$\cos H = \frac{\sin(-0.833^\circ) - \sin\varphi \, \sin\delta}{\cos\varphi \, \cos\delta}$$
Step 3 โ€” Sunrise & Sunset
$$\text{Sunrise} = \text{Noon} - 4H \qquad \text{Sunset} = \text{Noon} + 4H$$

Here \(\varphi\) is your latitude, \(\lambda\) your longitude, \(\delta\) the Sun's declination, \(E\) the equation of time, and \(\Delta_{tz}\) the UTC offset in minutes. The Sun's center is placed \(0.833^\circ\) below the horizon at sunrise and sunset to account for atmospheric refraction (about \(0.567^\circ\)) and the Sun's apparent radius (about \(0.267^\circ\)). The result is accurate to roughly one minute.

Twilight Phases Explained

After the Sun drops below the horizon the sky does not go dark instantly. Astronomers divide this fading light into three phases, defined by how far the Sun is below the horizon.

PhaseSun below horizonWhat it looks like
Civil twilight0ยฐ โ€“ 6ยฐBright enough to do most outdoor activities without artificial light.
Nautical twilight6ยฐ โ€“ 12ยฐHorizon still faintly visible at sea; brighter stars appear.
Astronomical twilight12ยฐ โ€“ 18ยฐSky almost fully dark; faint deep-sky objects become visible.
Nightmore than 18ยฐThe sky is as dark as it will get.

Golden Hour and Blue Hour

Photographers prize the soft, warm light around sunrise and sunset. The golden hour is when the Sun is low in the sky, roughly between \(-4^\circ\) and \(+6^\circ\), bathing everything in warm, directional light with long shadows. The blue hour is the period just before the golden hour in the morning and just after it in the evening, when the Sun is about \(4^\circ\) to \(6^\circ\) below the horizon and the sky takes on a deep, even blue. This calculator gives you all four windows โ€” morning and evening โ€” so you can plan a shoot to the minute.

Why Day Length Changes Faster in Spring and Autumn

The number of daylight minutes you gain or lose each day is not constant. Near the equinoxes (around March 20 and September 22) day length changes fastest โ€” by several minutes per day at mid latitudes. Near the solstices (around June 21 and December 21) it barely changes at all, which is why we get long stretches of similar-length days in midsummer and midwinter. The calculator shows the exact change compared with the previous day, so you can watch this seasonal rhythm.

Midnight Sun and Polar Night

Above the Arctic Circle (about \(66.5^\circ\) N) and below the Antarctic Circle, the Sun can stay above the horizon for a full 24 hours around the summer solstice โ€” the famous Midnight Sun โ€” or remain below the horizon all day around the winter solstice, known as polar night. When you choose a high-latitude city such as Tromsรธ or Reykjavรญk near a solstice, the calculator detects these situations and reports a 24-hour or 0-hour day instead of a sunrise time. Try it to see how dramatically day length swings as you move toward the poles.

How to Use This Calculator

  1. Choose a location: Pick a city from the dropdown, or enter your own latitude and longitude in decimal degrees (negative for South and West).
  2. Set the date and time zone: Choose a date and select the UTC offset for your location. Add one hour if daylight saving time is in effect.
  3. Click Calculate: The tool computes sunrise, sunset, solar noon, and day length instantly.
  4. Explore the results: Study the sun-path arc, the 24-hour sky ribbon, all twilight phases, the golden and blue hours, and how the day length is changing.

Frequently Asked Questions

How are sunrise and sunset times calculated?

Sunrise and sunset are found from the Sun's position in the sky. Using the date we compute the Sun's declination and the equation of time, then the hour angle at which the Sun's center is 0.833ยฐ below the horizon (which allows for atmospheric refraction and the Sun's radius). Sunrise is solar noon minus that hour angle and sunset is solar noon plus it.

What is the difference between civil, nautical, and astronomical twilight?

Twilight is split by how far the Sun is below the horizon. Civil twilight is 0ยฐ to 6ยฐ below and is bright enough for most outdoor activity. Nautical twilight is 6ยฐ to 12ยฐ below, when the horizon is still visible at sea. Astronomical twilight is 12ยฐ to 18ยฐ below; beyond 18ยฐ the sky is fully dark.

What are the golden hour and blue hour?

The golden hour is the period soon after sunrise or before sunset when the Sun is low (about โˆ’4ยฐ to +6ยฐ) and the light is warm and soft. The blue hour is the slightly darker period before the golden hour in the morning and after it in the evening, when the Sun is roughly 4ยฐ to 6ยฐ below the horizon and the sky turns deep blue.

Why does day length change by a different amount each day?

The rate at which day length changes depends on your latitude and the time of year. Near the equinoxes the day length changes fastest, by several minutes per day at mid latitudes, while near the solstices it barely changes at all. This calculator shows exactly how many seconds the day is gaining or losing compared with the previous day.

What is the Midnight Sun and polar night?

Above the Arctic and Antarctic circles the Sun can stay above the horizon for a full 24 hours in summer (the Midnight Sun) or stay below it all day in winter (polar night). When you choose a high-latitude location near a solstice, this calculator detects these cases and reports a 24-hour or 0-hour day length instead of a sunrise time.

Does this calculator account for daylight saving time?

The calculator uses the UTC offset you select, which represents standard time. If daylight saving time is in effect for your chosen date, add one hour to the offset so the displayed clock times match your local clock.

Additional Resources

Reference this content, page, or tool as:

"Sunrise & Sunset Calculator" at https://MiniWebtool.com/sunrise-sunset-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: June 29, 2026

Astronomy Tools:

Top & Updated:

Instagram User ID LookupRandom Name PickerRandom PickerImage ResizerJob FinderLine CounterFacebook User ID LookupSort NumbersRelative Standard Deviation CalculatorFPS ConverterRemove SpacesSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจMercury Retrograde CalendarWord to Phone Number ConverterERA CalculatorMAC Address GeneratorBatting Average Calculator๐Ÿ“ท OCR / Image to TextSlope and Grade Calculatorโฌ› Aspect Ratio CalculatorMAC Address LookupRandom Quote GeneratorSum CalculatorPercent Off CalculatorFeet and Inches to Cm ConverterRandom Truth or Dare GeneratorMerge VideosInvisible Text GeneratorSHA256 Hash GeneratorRandom IMEI GeneratorRandom Credit Card GeneratorNumber of Digits CalculatorAudio SplitterWeight Loss CalculatorPhone Number ExtractorVertical Jump CalculatorMP3 Looper๐Ÿ–ฑ๏ธ Click CounterLog Base 10 CalculatorImage SplitterCm to Feet and Inches ConverterSquare Root (โˆš) CalculatorRandom Superpower GeneratorCaffeine Overdose CalculatorBitwise CalculatorSalary Conversion CalculatorRandom Poker Hand GeneratorSigma Notation Calculator (Summation)Master Number CalculatorOPS CalculatorRandom Fake Address GeneratorText FormatterWord Ladder GeneratorRandom Activity GeneratorFile Size ConverterRandom Writing Prompt GeneratorYouTube Channel StatisticsNumber to Word ConverterRoman Numerals ConverterRandom Birthday GeneratorRandom Movie PickerEmail ExtractorBattery Life CalculatorSaturn Return CalculatorSun Position CalculatorIP Subnet CalculatorHalfway Date CalculatorSHA512 Hash GeneratorLong Division CalculatorAdd Text to ImageRandom Meal GeneratorStair CalculatorCompound Growth CalculatorQuotient and Remainder CalculatorOn Base Percentage CalculatorRandom Loadout GeneratorSlugging Percentage CalculatorLunar Calendar ConverterRandom Time GeneratorOctal CalculatorVideo CompressorFirst n Digits of PiDecimal to BCD Converter๐Ÿ“… Date CalculatorHebrew Calendar ConverterArc Length CalculatorBCD to Decimal ConverterVideo to Image ExtractorAPI TesterBcrypt Hash Generator / CheckerWord Scramble GeneratorBreak Line by CharactersBingo Card GeneratorCompare Two StringsAcreage CalculatorBinary to Gray Code ConverterPercent Growth Rate CalculatorBolt Torque CalculatorRemove AccentRandom User-Agent GeneratorName RandomizerRandom Number PickereBay Fee CalculatorMartingale Strategy CalculatorList of Prime NumbersRandomize NumbersYouTube Thumbnail DownloaderFlip VideoGray Code to Binary ConverterProportion CalculatorLeap Years ListWAR CalculatorIP Address to Hex ConverterMD5 Hash GeneratorURL ExtractorDMS to Decimal Degrees ConverterYouTube Tag ExtractorConnect the Dots GeneratorRandom Tournament Bracket GeneratorText Case ConverterNumber ExtractorWhat is my Zodiac Sign?CM to Inches ConverterAI Language DetectorImage CompressorVideo SplitterTime Duration CalculatorOutlier CalculatorSocial Media Username CheckerBinary to BCD ConverterRandom Group GeneratorSmall Text Generator โฝแถœแต’แต–สธ โฟ แต–แตƒหขแต—แต‰โพDay of the Year Calculator - What Day of the Year Is It Today?Random Chess Opening GeneratorAdd Prefix and Suffix to Text๐ŸŽฐ Gacha Pity CalculatorLottery Number GeneratorAmortization CalculatorWHIP CalculatorMolarity CalculatorRandom Emoji GeneratorAI Text HumanizerCone Flat Pattern (Template) Generator1099 Tax Calculator๐Ÿ” Plagiarism CheckerPVIF CalculatorAstrological Element Balance CalculatorTrigonometric Equation SolverBroken Link CheckerSourdough CalculatorAdjust Video SpeedDecibel (dB) CalculatorSum of Positive Integers CalculatorReverse TextList of Fibonacci NumbersParabola CalculatorList RandomizerWhat is my Lucky Number?Color InverterFraction CalculatorShort Selling Profit CalculatorLED Resistor CalculatorPER Calculatorโš”๏ธ DPS CalculatorConvolution CalculatorTaco Bar CalculatorYouTube Comment Picker๐Ÿ”Š Tone GeneratorWater Usage CalculatorRemove Leading Trailing SpacesBeer Chill Time CalculatorLove Compatibility CalculatorGoldbach Conjecture VerifierImage CropperEffect Size CalculatorMegapixel to Print Size CalculatorPercent to PPM ConverterPVIFA CalculatorDay of Year CalendarTransformer CalculatorRandom Chord GeneratorMAC Address AnalyzerRandom Math Problem GeneratorRatio to Percentage CalculatorReverse VideoBlood Donation Time CalculatorBoxing Punch Power CalculatorName Number CalculatorBackronym GeneratorFirst n Digits of eHTML CompressorRandom Line PickerPower Factor CalculatorRemove Audio from VideoRatio CalculatorAI ParaphraserBCD to Binary ConverterExponents CalculatorAI Punctuation AdderSort Lines AlphabeticallyHex to BCD ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorModulo 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 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 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 Calculator