For federal taxes, how long a dependent must live with you depends on which kind of dependent they are. A qualifying child has to share your home for more than half the tax year. A qualifying relative who is close family (a parent, grandparent, sibling, aunt, uncle, niece, nephew, or in-law) generally doesn’t have to live with you at all. Anyone else you want to claim as a qualifying relative, such as a partner or family friend, has to live with you as a member of your household for the entire 12 months.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
More Than Half the Year for a Qualifying Child
A qualifying child must have the same principal place of abode as you for more than half the tax year. In a non-leap year, that works out to at least 183 nights. The nights don’t have to be consecutive, and you don’t have to stay at the same address the whole time. What matters is that wherever you were living, the child was living there too.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
This same more-than-half-year test controls Head of Household filing status. The qualifying person has to live with you for more than half the year, with one exception: a dependent parent can qualify you for Head of Household without living in your home.
Time Away That Still Counts as Living With You
Temporary Absences
Nights a child spends away from your home still count toward the residency test if the absence is temporary and the child intends to return. The IRS treats school attendance, vacation, medical treatment, business travel, military service, and time in a juvenile detention facility as temporary absences. A college student who lives in a dorm during the academic year but keeps your home as their permanent address still meets the test.2Internal Revenue Service. Qualifying Child Rules
Birth or Death During the Year
A child born during the tax year is treated as having lived with you the whole year, as long as your home was the child’s home for more than half of the time the child was alive. The same rule works in reverse for a child who passed away 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 your 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
Kidnapping
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: Two Very Different Rules
The residency rule for a qualifying relative looks nothing like the rule for a qualifying child, and this is where many people get tripped up.
If the person you want to claim fits one of the family relationships listed in the tax code (parent, grandparent, stepparent, sibling, half-sibling, step-sibling, aunt, uncle, niece, nephew, son- or daughter-in-law, father- or mother-in-law, brother- or sister-in-law), residency is not part of the analysis. They can live across the country and still be your dependent, so long as they meet the other tests for a qualifying relative.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
If the person is not on that list, they can still be a qualifying relative, but only by living with you as a member of your household for the entire tax year. A partner you aren’t married to, a friend who moved in, a cousin: all 12 months. A brief gap can disqualify them.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined
Divorced or Separated Parents
Only the custodial parent (the parent the child spent the greater number of nights with) meets the residency test. The custodial parent can release the dependency claim to the other parent by signing Form 8332, which the noncustodial parent attaches to their return. That transfer lets the noncustodial parent claim the child for the Child Tax Credit or the Credit for Other Dependents even though the child didn’t 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 move Head of Household filing status or the Earned Income Tax Credit. Those benefits depend on the child actually living with the taxpayer, so they stay with the custodial parent regardless of 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 is the one with the higher adjusted gross income.
When Two People Claim the Same Child
When more than one person qualifies to claim the same child, the IRS applies a fixed order of priority. This is common in households where a child lives with a parent plus grandparents, aunts, or an unmarried partner.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 a joint return, the child goes on that joint return.
- If both parents can claim but don’t file together, the parent the child lived with longer wins; if the nights were 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 the AGI of any parent who could have claimed the child.
The rules are automatic. You don’t invoke them with a form. But if two people claim the same child, both returns get flagged, the IRS applies the hierarchy, and the person who loses has to pay back the credits they received plus interest.
Residency Alone Isn’t Enough
Meeting the time-in-your-home test doesn’t finish the analysis. Every dependent must also pass the relationship, support, joint-return, and identification requirements, and qualifying children face an age test while qualifying relatives face a gross income limit ($5,300 for 2026). Failing any one of these disqualifies the person even if they lived with you the entire year.1Office of the Law Revision Counsel. 26 USC 152 – Dependent Defined The Earned Income Tax Credit also carries its own residency rule: the child must live with you in the United States (the 50 states, D.C., and U.S. military bases, but not territories such as Puerto Rico or Guam) for more than half the year.2Internal Revenue Service. Qualifying Child Rules
What Happens if You Get It Wrong
Claiming someone you weren’t entitled to claim is treated as an underpayment. At a minimum, you’ll pay back the credits with interest. If the IRS finds negligence or disregard of 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, or 10 years if the claim was fraudulent.8Internal Revenue Service. What to Do if We Deny Your Claim for a Credit
Duplicate claims on the same Social Security number are flagged automatically. If you aren’t sure whether the residency test lands in your favor, work it out with the other potential claimant before either of you files.