Home › Chicken Coop Door Timer Calculator

Chicken Coop Door Timer Calculator

Chickens put themselves to bed at dusk, and predators start moving at the same time. Enter your location to see sunrise, sunset and the end of dusk for any date, the open and close times to program into an automatic coop door, and simple month-by-month settings if your timer can’t follow the sun on its own.

(stays in your browser)
Clock times include daylight saving where it applies.
Watch your flock for a few evenings and adjust.

The short answer

Open the coop door at sunrise and close it about 20–30 minutes after sunset, after the whole flock has gone in to roost but before full dark (civil dusk). Because sunrise and sunset move by more than two hours across the year in much of the US (and by a further hour with daylight saving time), a door on a plain timer needs adjusting at least once a month. Light-sensor doors and “astronomical” timers do this for you.

How the calculator works

It works out sunrise, sunset and twilight for your latitude, longitude and date with the NOAA solar position equations. Sunrise and sunset are the moments the top edge of the sun meets the horizon, allowing about 0.83° for atmospheric refraction (the same convention almanacs use). Civil dawn and civil dusk are when the center of the sun is 6° below the horizon. The National Weather Service describes this as the point where the brightest stars appear and you can still see the horizon and objects without artificial light. Past civil dusk it’s effectively dark.

Your open and close times are those events plus the offsets you choose, shown in local clock time with daylight saving time applied. For the monthly table the calculator checks every day of the month and picks the latest open and close times, so a fixed setting is never too early on any day of that month.

When do chickens go to roost?

Chickens head for the roost as the light fades, usually around sunset, and most flocks are on the perch before the end of civil twilight. Young birds, new additions and low-ranking hens are often the last ones in. Before you trust a timer, watch the coop for a few evenings and note when the last bird goes in. Then pick the close offset that comes a little after that. If birds keep getting shut out, extension guides suggest training them by putting feed and water inside at dusk.

Why closing time matters most

University of New Hampshire Extension says keeping chickens indoors at night is “easily the most important and effective way of protecting free range birds,” because many predators are most active between dusk and dawn. Raccoons, foxes, coyotes, weasels and great horned owls all take chickens at night. Colorado State University Extension adds that hungry owls may strike right at dusk or slightly before, so if owls are a problem in your area, don’t wait until after dark to close up. A close time between sunset and civil dusk balances the two risks: late enough for the last hen, early enough to beat the night shift.

When to open the door

There’s less risk in opening a little late than in closing late. Foxes and coyotes are still about at first light, and hens lay most eggs in the morning, so keeping the birds inside until sunrise or a bit after costs nothing if the coop has food, water and nest boxes. If your run is fully enclosed and predator-proof, opening at civil dawn is fine. Hens in a small coop get restless once it’s light, so avoid keeping them shut in for hours.

Timer, light sensor or astronomical timer?

  • Plain clock timer. Cheap and reliable, but you have to change the times as the seasons change (use the monthly table above) and change them again when the clocks go forward or back, unless the timer adjusts for DST.
  • Light sensor. Follows the real light level automatically, including dark storms. Heavy cloud can close it early and a porch light or streetlight can stop it closing, so check where the sensor faces. Most let you add a delay after the trigger, which works like the close offset here.
  • Astronomical (sunrise/sunset) timer. You enter your location and an offset, and it calculates the times every day, as this page does. That gives the predictability of a timer without the monthly chores.

Whatever you choose, do a headcount or check a coop camera after the door closes. A hen that misses the door spends the night outside. Lithium batteries hold up better than alkaline in cold weather, and a door that freezes shut won’t open, so check it after ice storms.

Planning the rest of the coop

If you also light the coop in winter, the coop lighting calculator uses the same sun math to set a morning light timer. Size the coop itself with the coop size calculator, the daytime space with the chicken run size calculator or electric poultry netting calculator, and keep the closed-up coop fresh overnight with the coop ventilation calculator.

Times are calculated in your browser and are usually within a minute or two of an almanac. Hills, trees and buildings make it darker earlier than the flat-horizon sunset shown here, so local dusk in a wooded yard can come sooner.

Gear that helps

  • Automatic chicken coop door (light-sensor, timer or astronomical-timer models)
  • Lithium AA batteries or a small solar panel for the door motor
  • An outdoor-rated digital timer with a battery backup, if your door runs on a plug-in timer
  • A predator-proof latch for the people door and nest-box lids
  • A small coop camera to check that everyone is in

We may earn a commission from some links. See our disclosure.

Frequently asked questions

What time should I close my chicken coop door?

Around 20–30 minutes after sunset, once every bird is on the roost and no later than civil dusk, when it gets dark. In the continental US civil dusk falls roughly 25–40 minutes after sunset: a little sooner in South Florida and South Texas, and a little later along the Canadian border around midsummer. Use the calculator for your date and location.

What time should an automatic chicken door open?

At sunrise or a little after is a safe default. Opening at civil dawn is fine if the run is fully predator-proof. Opening later is safer than opening earlier, because foxes and coyotes are still out at first light.

Do I need to change my coop door timer for daylight saving time?

Only if the timer runs on a fixed clock that doesn’t adjust for DST itself. When clocks spring forward or fall back, sunrise and sunset jump an hour on the clock, so move both settings by an hour. Light-sensor doors don’t need any change.

How often should I change the coop door timer?

At least once a month. In spring and fall, sunset moves by about 1–2 minutes a day at mid-latitudes, so a fixed setting can be 30–60 minutes off by the end of the month. The monthly table shows how far the ideal time drifts each month where you live.

Is it okay to close the coop door after dark?

Many keepers close up after dark, but it gives night predators a head start. Colorado State University Extension warns that owls can strike at dusk, and raccoons are active as soon as it gets dark. The safest close time is between sunset and civil dusk.

Why are my chickens not going in the coop at night?

Common reasons are a new coop they don’t recognize as home, bullying at the door or on the roost, mites in the coop, or not enough roost space. Shut new birds in the coop for a few days, and try putting feed and water inside at dusk to lure them in.

Sources

Last reviewed November 2026. These are planning estimates for hobby flocks. For sick birds, contact a poultry vet or your state extension office.