August 1, 2026
The midnight rule: how states count your days
Where you are at midnight is where the day counts. Simple to state, easy to fail, and the reason your travel calendar is a tax document.
Most people who spend serious time changing state residence have heard about the 183-day threshold. Far fewer have thought through what a "day" actually means to the state that's counting them. It matters, because the rule most states use is deceptively simple: where you are at midnight is where the day belongs. Where you slept, in other words. Not where you worked, ate lunch, went to a meeting, or spent the majority of your waking hours.
Why midnight, and not something more sensible
The midnight rule is administratively practical. A state auditor can't verify where you were minute-to-minute across 365 days. But midnight is a bright line: everyone is somewhere at midnight, and that somewhere is usually where you sleep, which is usually where the rest of the day's meaningful facts sit.
California, New York, and most other high-tax states apply some version of this. New York's regulation is explicit: any part of a day spent in New York State counts as a New York day for statutory residency purposes, with narrow exceptions for transit. California's Franchise Tax Board relies on a totality-of-facts test but treats presence at midnight as one of the strongest single facts. The specific rule matters at the margins; the principle is consistent.
Where the rule bites harder — the permanent-place-of-abode exception
The midnight rule is the default. Several important states apply a harsher rule when the taxpayer maintains what the statute calls a permanent place of abode in the state — a house, a condo, sometimes even a long-term rental. In those states, if you have an abode there, any physical presence at all during a day — even for part of the day — counts as a day in that state for statutory-residency purposes.
- New York. Tax Law §605(b)(1)(B) is the canonical version. Maintain a permanent place of abode in New York and spend more than 183 "days" in the state, and you're a statutory resident. A day means any part of a day — an hour, a minute, walking off the train at Penn Station to pick up a package. There is a narrow transit exception (traveling through New York en route somewhere else without material business), and a separate carve-out for a limited number of days that count only toward specific purposes, but the baseline is that presence-plus-abode equals a day.
- Massachusetts. MGL c.62, §1(f) uses the same permanent-place-of-abode standard. If you keep a home in Massachusetts and step foot into the state at any point during a day, that day counts for MA statutory-residency purposes.
- New Jersey, Connecticut, Pennsylvania, and several others follow variations on the same rule. The specific carve-outs differ; the underlying trap is the same.
The rule catches sophisticated taxpayers with vacation homes. The mental model many people carry is "I’ll count the days I sleep there" — and that’s a fine mental model for domicile audits, but statutory residency in an abode-and-presence state doesn’t work that way. Fly into Boston for a client lunch at noon, fly out at 4 PM, sleep in Miami — if you have a house in Beacon Hill, that’s an MA day.
The practical upshot is that if you have a home in a permanent-abode-rule state, the day-count exposure is on any day you touch the state, not just the days you overnight there. That materially changes the recordkeeping burden: you need to log every airport touchdown, every drive across a state line, every meeting. Most people underestimate this until the audit letter arrives.
The counterintuitive cases
A day of business meetings in California, sleeping in Nevada, is a Nevada day. You spent ten hours in San Francisco, ate at three restaurants, attended four meetings — but you flew home to Reno at 9 PM and were in your own bed at midnight. Under the midnight rule, that day is Nevada's. This often surprises people, and it is one of the strongest reasons real estate just across state lines — Lake Tahoe's Nevada side, the New Jersey side of the Hudson — commands the premium it does.
A day of vacation in Florida, sleeping in your rented condo, is a Florida day. Even if your domicile is New York and you're planning to return home after the trip. The physical-presence day count is separate from the domicile question.
A red-eye flight departing before midnight belongs to the departure state. You board in Los Angeles at 10 PM on Tuesday and land in New York at 6 AM Wednesday. Tuesday is a California day (you were physically in California at midnight, in the air). Wednesday is a New York day. If instead you depart at 12:30 AM, Tuesday belonged to California (you were still in California proper) but you're already in Wednesday by the time you're airborne, so Wednesday is a New York day.
A day passing through a state you don't sleep in usually doesn't count. Drive from Nevada to Oregon through Idaho, arriving in Portland before midnight — Idaho gets no residency day from that trip. New York carves out a specific transit exception (you can travel through New York en route elsewhere without triggering a NY day, as long as you don't stop for material business). Most states default to the midnight test regardless.
The recordkeeping problem
If your domicile change is being tested — either during a proactive statutory-residency check or in the middle of a full domicile audit — the state's opening question is: prove where you were on each day of the year.
The burden is on the taxpayer. Absence of evidence is interpreted as presence, not as absence, because the state is entitled to assume you were where its records last showed you unless you demonstrate otherwise. A year with 82 unlogged days is a year in which the state can assign those 82 days where it prefers.
This is why day-by-day tracking is not optional for anyone crossing a tax-consequential state line. Boarding passes, hotel folios, credit card geo-stamps, dated photographs, and GPS logs on your phone all corroborate where you were. The question isn't whether the auditor believes you; it's whether you can show them.
What this means for the calculator
When our calculator estimates the tax difference between two states, it assumes you actually spend enough of the year in your destination state to satisfy that state's residency test — and few enough days in your origin state to break its residency claim. Both are physical-presence questions that answer to the midnight rule. The number the calculator produces is predicated on you being able to demonstrate the day count, not merely assert it.