A judge can order a paternity test, and federal law requires every state to have a procedure for it. To get a court-ordered paternity test, you file a petition to establish parentage in family court, serve the other party, and appear at a hearing where the judge decides whether to compel genetic testing. If the order is granted, everyone named, including the child, submits a cheek swab at an accredited lab, and the results carry the same legal weight as any other court finding.
Who Can Ask the Court to Order One
Standing is broader than most people expect. A mother can file to establish a legal father for support or to confirm parental rights. A man who believes he is the biological father can petition to secure custody or visitation. A man who denies being the father can request testing to clear the question. A child, acting through a legal guardian, can bring the petition too, which typically comes up in inheritance disputes or when the child needs a parent’s medical history.
State child support enforcement agencies also have standing. That usually happens when a mother applies for public assistance and the agency needs to identify a father who should be contributing. When the agency initiates testing, it covers the cost upfront, though some states will bill the identified father afterward.
Federal law defines the threshold in a contested case: any party can require genetic testing by filing a sworn statement either alleging paternity and describing a reasonable possibility of sexual contact, or denying paternity and describing a reasonable possibility that no contact occurred.
Grounds a Judge Will Accept
A court does not order testing on curiosity alone. There has to be a live legal dispute where parentage changes the outcome. Child support is the most common trigger: a support order cannot be established for a child born to unmarried parents until paternity is legally determined, so testing is often the first step. Custody and visitation are close behind, because a man cannot exercise or be ordered to share parental rights without a legal finding of fatherhood.
Paternity also matters for inheritance claims, access to a father’s health insurance, and eligibility for benefits like Social Security survivor payments. Judges will order testing to resolve any of those where the answer is genuinely in dispute.
Courts can also order testing to challenge the marital presumption of paternity. When a child is born during a marriage, the law presumes the husband is the father. That presumption is strong but not irrefutable. Another man claiming to be the biological father, or a husband with reason to doubt the child is his, can move to rebut the presumption. The rules for when and how vary by state, and some states impose tight deadlines measured from the child’s birth.
Filing the Petition
Start at the local family court with a petition to establish parentage. You will need full legal names and dates of birth for the mother, child, and alleged father, plus current addresses so the court can deliver proper notice. A certified copy of the child’s birth certificate is standard.
After filing and paying the court’s filing fee, you must formally serve the other party with the petition and a summons. Service is usually handled by a sheriff’s deputy or a private process server. That step puts the other party on notice and starts their deadline to respond. If you cannot afford the filing fee, most courts allow a fee waiver based on income.
The court then schedules a hearing. The judge reviews the petition, hears from both sides, and decides whether the case meets the threshold for compelled testing. If the state child support agency brought the case, it handles most of the procedural work for you. Once the order is granted, everyone named, including the child, is compelled to submit a DNA sample.
What Happens at the Lab
Court-ordered testing is not the same as a home DNA kit. For results to be admissible, the test must follow chain-of-custody protocols. Samples are collected at a certified facility by a trained collector, not at home. The collector verifies each participant’s identity with a photo ID, photographs them, and documents every step so samples cannot be tampered with or switched. Many state laws require the lab to hold AABB accreditation, which is the standard for relationship testing.
The test itself is painless. A cheek swab collects cells from the inside of the mouth, and the lab compares genetic markers between the child and the alleged father. Modern testing determines paternity with an accuracy rate that meets or exceeds 99.5%. Results typically come back within a few weeks.
A home kit runs roughly half the price and lets you collect samples privately, but because no one verifies who actually provided those samples, the results are not admissible. Home tests can satisfy personal curiosity. They cannot establish or terminate legal obligations.
What It Costs and Who Pays
Two expenses come with the process: the court filing fee and the lab fee. Filing fees for a parentage petition vary widely, ranging from nothing in some courts to several hundred dollars in others. The DNA test itself typically costs between $300 and $500 at an accredited facility with chain-of-custody protocols.
The judge decides who pays. A court can split the cost between the parties, assign it entirely to one side, or order reimbursement after results come in. When a child support enforcement agency is involved, the agency often covers the testing cost upfront and may seek repayment from the identified father later.
If the Other Party Refuses or Ignores the Order
Ignoring a court order for genetic testing is a serious mistake. Judges do not wait it out. The most common response is a default judgment that establishes the refusing party as the legal father without any test, which means full child support liability and parental obligations based entirely on the failure to appear or provide a swab.
Beyond default, a judge can hold the noncompliant party in contempt. Contempt carries fines, an order to pay the other party’s attorney’s fees, and, for continued defiance, jail time until the person complies. The same default mechanism applies when someone is properly served with notice of a paternity hearing and simply does not show up. The court proceeds without them and enters a finding of paternity.
How Long You Have to File
Federal law requires every state to allow paternity to be established at any time before the child turns 18. That is the floor. Some states permit actions after the child reaches adulthood, particularly when inheritance or benefits are at stake, but do not count on it.
Filing sooner is almost always better. Memories fade, people relocate, and evidence becomes harder to gather. For a father trying to establish rights, waiting years can also hurt a later custody evaluation, because courts weigh the existing parent-child relationship. And if the goal is to challenge, rather than establish, paternity, deadlines get much shorter.
If Someone Is Already the Legal Father
One important boundary: getting a court to order testing is far easier when no one has been declared the legal father yet. If a man was already established as the legal father through a voluntary acknowledgment, the marital presumption, or an earlier court order, a DNA test alone does not end his obligations. Undoing legal fatherhood is a separate proceeding with its own rules.
Voluntary acknowledgments can be rescinded within 60 days of signing or before any court or administrative proceeding involving the child, whichever comes first. After that window, the signer must prove fraud, duress, or a material mistake of fact to overturn it, and some states hold that the parent-child relationship becomes permanent regardless of biology. For men presumed to be the father through marriage, many states restrict challenges to within two years of the child’s birth. Because the rules vary significantly, talk to a family law attorney before filing anything in this posture. And be aware that a successful challenge does not usually refund past child support paid; courts treat those obligations as fulfilled rather than as debts to be clawed back.