A qualifying child has to live with you for more than half of the tax year before you can claim them as a dependent. A qualifying relative usually does not: if the person is a close family member listed in the tax code, such as a parent, sibling, aunt, uncle, niece, nephew, or in-law, they can be your dependent even if they never set foot in your home. The one exception is an unrelated household member, who must live with you for the entire year. That is the short answer to how long a dependent must live with you for taxes, and the rest depends on which category the person falls into.
Qualifying Child: More Than Half the Year
The rule in the tax code is that the child must share the same principal place of abode with you for more than half the tax year.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined In a non-leap year that works out to at least 183 nights. The nights do not have to be consecutive, and you do not have to stay at the same address the whole time. What matters is that wherever you were living, the child was living there too.
This same more-than-half-year test controls Head of Household filing status. The qualifying person generally has to live with you for more than half the year. A dependent parent is the outlier: you can file as Head of Household on the basis of a parent who lives somewhere else, such as their own home or a care facility.
Time Away That Still Counts as Time at Home
Nights a dependent spends away from your home still count as nights lived with you if the absence is temporary and the person intends to return. The IRS treats the following as temporary absences: school, vacation, medical treatment, business, military service, and time in a juvenile detention facility.2Internal Revenue Service. Qualifying Child Rules A college student who sleeps in a dorm nine months of the year but treats your address as home still meets the residency test.
Births and Deaths During the Year
A child born during the year is treated as having lived with you all year, so long as your home was the child’s home for more than half of the time the child was alive. The same rule applies if a dependent died during the year. If a child was born and died in the same year and never received a Social Security number, you can enter “DIED” on the return in place of an SSN and attach a birth certificate, death certificate, or hospital record showing a live birth.3Internal Revenue Service. Qualifying Child Rules
Kidnapped Children
A child kidnapped by someone who is not a family member is treated as having lived with you for the entire year, provided the child lived with one or both parents for more than half the year before the kidnapping.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
Qualifying Relatives: Often No Residency at All
The rules change sharply once you leave the qualifying child category. The tax code lists specific relationships that satisfy the relationship test automatically, and none of those relationships carry a residency requirement. Your parent, grandparent, sibling, aunt, uncle, niece, nephew, stepparent, or in-law can qualify as your dependent while living entirely apart from you, as long as they meet the other tests for income and support.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
There is one category of qualifying relative where residency does matter, and the standard is strict. If the person is not on the list of specified relatives, they can still be your dependent, but only if they lived with you as a member of your household for the entire tax year. A partner, a friend, a cousin’s child, anyone whose relationship to you is not one of the listed ones must be under your roof for all twelve months. Even a short gap can disqualify them.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
Divorced or Separated Parents
When parents live apart, the child normally counts as living with the custodial parent, meaning the parent with the greater number of overnight stays. Only that parent can claim the child as a dependent by default. The custodial parent can release the claim to the noncustodial parent by signing Form 8332, which the noncustodial parent then attaches to their return. That release lets the noncustodial parent claim the child for the Child Tax Credit and the Credit for Other Dependents even though the child did not live with them for more than half the year.4Internal Revenue Service. Claiming a Child as a Dependent When Parents Are Divorced, Separated or Live Apart
Form 8332 does not transfer everything. Head of Household filing status and the Earned Income Tax Credit stay with the custodial parent because both depend on where the child actually lives, not on who claims the dependency.5Internal Revenue Service. Form 8332 (Rev. December 2025) If the child spent an equal number of nights with each parent, the custodial parent for tax purposes is the one with the higher adjusted gross income.
When Two People Could Claim the Same Child
Residency also drives the tie-breaker rules, which come up when a child lives with more than one adult who could otherwise claim them. The IRS applies a fixed hierarchy:6Internal Revenue Service. Publication 501 (2025), Dependents, Standard Deduction, and Filing Information
- If one claimant is a parent and the other is not, the parent claims the child.
- If both parents file jointly, they claim the child on their joint return.
- If both parents could claim but do not file together, the parent the child lived with longer during the year wins; if the nights are equal, the parent with the higher AGI wins.
- If no parent claims the child, the person with the highest AGI can claim, but only if that AGI is higher than any parent who could have claimed.
These rules apply automatically. If two returns claim the same Social Security number, both get flagged, and whichever taxpayer loses under the hierarchy owes back the credits they received, with interest.
Residency Alone Is Not Enough
Meeting the time-under-your-roof rule only clears one hurdle. A qualifying child still has to meet the relationship, age, support, joint return, and identification tests. A qualifying relative has to meet a relationship or full-year household test, a gross income test (the threshold is $5,300 for 2026), a support test, and the joint return and identification requirements. Someone who lived with you every night of the year can still fail to be your dependent if, for example, they earned too much or filed a joint return with a spouse.
What Happens if You Get the Residency Test Wrong
Claiming a dependent you were not entitled to claim is treated as an underpayment. You owe back the credits, plus interest. If the IRS finds you were negligent or disregarded the rules, an accuracy-related penalty of 20% of the underpayment applies.7Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments The IRS can also ban you from claiming dependency-related credits for two years after a final determination of reckless or intentional disregard, and for ten years if the claim is found to be fraudulent.8Internal Revenue Service. What to Do if We Deny Your Claim for a Credit
The most common way people trip on this is two adults claiming the same child without settling the tie-breaker first. Every SSN on every return is cross-referenced, so a duplicate claim will surface. If you are not sure whether the child lived with you longer than with anyone else, count the nights before you file rather than after the notice arrives.