Qualifying Child Residency and Custody Rules: Filing Status and Dependents (2025 IRS Guide)
This guide covers “Qualifying Child Residency and Custody Rules” within filing status and dependents. The following material presents the IRS treatment of this topic, including the qualifications, exceptions, and examples in the source section. Read the rules alongside the facts of your own situation before deciding what to report, deduct, or document.
Adapted from Publication 501 (2025), Dependents, Standard Deduction, and Filing Information, published by the Internal Revenue Service. This guide retains the source edition’s years, amounts, deadlines, and examples. It is guidance for that edition, not a statement that the same figures apply to every tax year.
Context for these rules
Five tests must be met for a child to be your qualifying child. The five tests are:
.If a child meets the five tests to be the qualifying child of more than one person, there are rules you must use to determine which person can actually treat the child as a qualifying child. See Qualifying Child of More Than One Person, later..
Qualifying Child Residency and Custody Rules
To meet this test, your child must have lived with you for more than half the year. There are exceptions for temporary absences, children who were born or died during the year, adopted or foster children, kidnapped children, and children of divorced or separated parents.
Temporary absences.
Your child is considered to have lived with you during periods of time when one of you, or both, is temporarily absent due to special circumstances, such as:
-
Illness,
-
Education,
-
Business,
-
Vacation,
-
Military service, or
-
Detention in a juvenile facility.
Death or birth of child.
A child who was born or died during the year is treated as having lived with you more than half the year if your home was the child’s home more than half the time the child was alive during the year. The same is true if the child lived with you more than half the year except for any required hospital stay following birth.
Child born alive.
You may be able to claim as a dependent a child born alive during the year, even if the child lived only for a moment. State or local law must treat the child as having been born alive. There must be proof of a live birth shown by an official document, such as a birth certificate. The child must be your qualifying child or qualifying relative, and all the other tests to claim the child as a dependent must be met.
Stillborn child.
You can’t claim a stillborn child as a dependent.
Adopted child or foster child.
You can treat your adopted child or foster child as meeting the residency test, as follows, if you adopted the child in 2025, the child was lawfully placed with you for legal adoption by you in 2025, or the child was an eligible foster child placed with you during 2025. This child is considered to have lived with you for more than half of 2025 if your main home was this child’s main home for more than half the time since this child was adopted or placed with you in 2025.
Kidnapped child.
You can treat your child as meeting the residency test even if the child has been kidnapped, but the following statements must be true.
-
The child is presumed by law enforcement authorities to have been kidnapped by someone who isn’t a member of your family or the child’s family.
-
In the year the kidnapping occurred, the child lived with you for more than half of the part of the year before the date of the kidnapping.
-
In the year of the child’s return, the child lived with you for more than half the part of the year following the date of the child’s return.
This treatment applies for all years until the earlier of:
-
The year there is a determination that the child is dead, or
-
The year the child would have reached age 18.
Children of divorced or separated parents (or parents who live apart).
In most cases, because of the residency test, a child of divorced or separated parents is the qualifying child of the custodial parent. However, the child will be treated as the qualifying child of the noncustodial parent if all four of the following statements are true.
-
The parents:
-
Are divorced or legally separated under a decree of divorce or separate maintenance;
-
Are separated under a written separation agreement; or
-
Lived apart at all times during the last 6 months of the year, whether or not they are or were married.
-
-
The child received over half of the child’s support for the year from the parents.
-
The child is in the custody of one or both parents for more than half of the year.
-
Either of the following statements is true.
-
The custodial parent signs a written declaration, discussed later, that they won’t claim the child as a dependent for the year, and the noncustodial parent attaches this written declaration to their return. (If the decree or agreement went into effect after 1984 and before 2009, see Post-1984 and pre-2009 divorce decree or separation agreement, later. If the decree or agreement went into effect after 2008, see Post-2008 divorce decree or separation agreement, later.)
-
A pre-1985 decree of divorce or separate maintenance or written separation agreement that applies to 2025 states that the noncustodial parent can claim the child as a dependent, the decree or agreement wasn’t changed after 1984 to say the noncustodial parent can’t claim the child as a dependent, and the noncustodial parent provides at least $600 for the child’s support during the year.
-
If statements (1) through (4) are all true, only the noncustodial parent can:
-
Claim the child as a dependent; and
-
Claim the child as a qualifying child for the child tax credit, the credit for other dependents, or the additional child tax credit.
Example—earned income credit.
Even if statements (1) through (4) are all true and the custodial parent signs Form 8332 or a substantially similar statement that the custodial parent won’t claim the child as a dependent for 2025, this doesn’t allow the noncustodial parent to claim the child as a qualifying child for the earned income credit. The custodial parent or another taxpayer, if eligible, can claim the child for the earned income credit.
Custodial parent and noncustodial parent.
The custodial parent is the parent with whom the child lived for the greater number of nights during the year. The other parent is the noncustodial parent.
If the parents divorced or separated during the year and the child lived with both parents before the separation, the custodial parent is the one with whom the child lived for the greater number of nights during the rest of the year.
A child is treated as living with a parent for a night if the child sleeps:
-
At that parent’s home, whether or not the parent is present; or
-
In the company of the parent, when the child doesn’t sleep at a parent’s home (for example, the parent and child are on vacation together).
Equal number of nights.
If the child lived with each parent for an equal number of nights during the year, the custodial parent is the parent with the higher AGI.
December 31.
The night of December 31 is treated as part of the year in which the night begins. For example, the night of December 31, 2025, is treated as part of 2025.
Emancipated child.
If a child is emancipated under state law, the child is treated as not living with either parent. See Examples 5 and 6.
Absences.
If a child wasn’t with either parent on a particular night (because, for example, the child was staying at a friend’s house), the child is treated as living with the parent with whom the child normally would have lived for that night, except for the absence. But if it can’t be determined with which parent the child normally would have lived or if the child would not have lived with either parent that night, the child is treated as not living with either parent that night.
Parent works at night.
If, due to a parent’s nighttime work schedule, a child lives for a greater number of days, but not nights, with the parent who works at night, that parent is treated as the custodial parent. On a school day, the child is treated as living at the primary residence registered with the school.
Example 1—child lived with one parent for a greater number of nights.
You and your child’s other parent are divorced. In 2025, your child lived with you 210 nights and with the other parent 155 nights. You are the custodial parent.
Example 2—child is away at camp.
In 2025, your child lives with each parent for alternate weeks. In the summer, your child spends 6 weeks at summer camp. During those 6 weeks, your child is treated as living with you for 3 weeks and with your child’s other parent, your ex-spouse, for 3 weeks because this is how long the child would have lived with each parent if the child had not attended summer camp.
Example 3—child lived same number of nights with each parent.
Your child lived with you 180 nights during the year and lived the same number of nights with the child’s other parent, your ex-spouse. Your AGI is $40,000. Your ex-spouse’s AGI is $25,000. You are treated as your child’s custodial parent because you have the higher AGI.
Example 4—child is at parent’s home but with other parent.
Your child normally lives with you during the week and with the child’s other parent, your ex-spouse, every other weekend. You become ill and are hospitalized. Your ex-spouse lives in your home with your child for 10 consecutive days while you are in the hospital. Your child is treated as living with you during this 10-day period because your child was living in your home.
Example 5—child emancipated in May.
Your child turned 18 in May 2025 and became emancipated under the law of the state where your child lives. As a result, your child isn’t considered in the custody of either parent for more than half of the year. The special rule for children of divorced or separated parents doesn’t apply.
Example 6—child emancipated in August.
Your child lives with you from January 1, 2025, until May 31, 2025, and lives with the child’s other parent, your ex-spouse, from June 1, 2025, through the end of the year. Your child turns 18 and is emancipated under state law on August 1, 2025. Because your child is treated as not living with either parent beginning on August 1, your child is treated as living with you the greater number of nights in 2025. You are the custodial parent.
Written declaration.
The custodial parent must use either Form 8332 or a similar statement (containing the same information required by the form) to make the written declaration to release a claim to an exemption for a child to the noncustodial parent. Although the exemption amount is zero for tax year 2025, this release allows the noncustodial parent to claim the child tax credit, credit for other dependents, or additional child tax credit, if applicable, for the child. The noncustodial parent must attach a copy of the form or statement to their tax return.
The release can be for 1 year, for a number of specified years (for example, alternate years), or for all future years, as specified in the declaration.
Post-1984 and pre-2009 divorce decree or separation agreement.
If the divorce decree or separation agreement went into effect after 1984 and before 2009, the noncustodial parent may be able to attach certain pages from the decree or agreement instead of Form 8332. The decree or agreement must state all three of the following.
-
The noncustodial parent can claim the child as a dependent without regard to any condition, such as payment of support.
-
The custodial parent won’t claim the child as a dependent for the year.
-
The years for which the noncustodial parent, rather than the custodial parent, can claim the child as a dependent.
The noncustodial parent must attach all of the following pages of the decree or agreement to their tax return.
-
The cover page (write the other parent’s SSN on this page).
-
The pages that include all of the information identified in items (1) through (3) above.
-
The signature page with the other parent’s signature and the date of the agreement.
Post-2008 divorce decree or separation agreement.
The noncustodial parent can’t attach pages from the decree or agreement instead of Form 8332 if the decree or agreement went into effect after 2008. The custodial parent must sign either Form 8332 or a similar statement the only purpose of which is to release the custodial parent’s claim to an exemption, and the noncustodial parent must attach a copy to their return. The form or statement must release the custodial parent’s claim to the child without any conditions. For example, the release must not depend on the noncustodial parent paying support.
.The noncustodial parent must attach the required information even if it was filed with a return in an earlier year..
Revocation of release of claim to an exemption.
The custodial parent can revoke a release of claim to an exemption. For the revocation to be effective for 2025, the custodial parent must have given (or made reasonable efforts to give) written notice of the revocation to the noncustodial parent in 2024 or earlier. The custodial parent can use Part III of Form 8332 for this purpose and must attach a copy of the revocation to their return for each tax year the custodial parent claims the child as a dependent as a result of the revocation.
Remarried parent.
If you remarry, the support provided by your new spouse is treated as provided by you.
Parents who never married.
This rule for divorced or separated parents also applies to parents who never married and lived apart at all times during the last 6 months of the year.
Using the guidance
Keep the documents that establish the dates, amounts, and circumstances described above. References to other chapters, forms, worksheets, or earlier and later sections refer to the linked IRS publication. Check the full publication and its updates before relying on a rule for a different tax year or a situation not addressed here.
Sources and further reading
- Publication 501 (2025), Dependents, Standard Deduction, and Filing Information: Dependents — Qualifying Child — Residency Test — Internal Revenue Service; 2025 edition.
The cited U.S. government text is in the public domain. Source accessed October 28, 2026. Fynoptic has organized this material for educational use and is independent of, and not endorsed by, the IRS.