Family law

Paternity Recognition and DNA Tests in Spain: Expats Guide

By the AbogadoAI editorial team · Updated 18 July 2026 · 11 min read

🇪🇸 Read the original in Spanish

Establishing parentage (filiación) in Spain is a fundamental right that defines not only a person's identity, but also a set of reciprocal duties and rights such as child support, parental authority (patria potestad), and inheritance rights. When a child is born out of wedlock or when doubts arise regarding biological fatherhood, the Spanish legal system offers clear, yet strict, mechanisms to establish or challenge this link. Through this detailed article, we will analyze how paternity recognition is regulated in Spain, the crucial role of DNA testing, and the legal pathways to claim or challenge parentage, providing a practical guide for both Spanish citizens and foreign residents who need to navigate our country's family law.

Parentage in Spanish law is deeply protected by the Spanish Constitution (Article 39, which ensures the comprehensive protection of children and the possibility of paternity investigation) and is developed in detail within the Código Civil (Civil Code).

The Civil Code clearly distinguishes between marital and non-marital parentage:

It is essential to take into account the impact of Ley 15/2005 of July 8, which modified the Civil Code regarding separation and divorce, streamlining family law processes, and Ley Orgánica 1/2004 of December 28 on Integrated Protection Measures against Gender Violence.

In the scope of parentage and parental authority, when there are well-founded indications of gender violence, Spanish courts can suspend or limit the visitation rights and communications of the parent under investigation, always prioritizing the best interests of the minor. Likewise, the recognition of non-marital paternity of a minor by a parent who has committed acts of violence against the mother may be subject to special judicial scrutiny to prevent situations of abuse of rights or coercive control.

Pathways for Recognizing Paternity

There are two main pathways to establish paternity when the automatic presumption of marriage does not apply: the voluntary route (administrative/notarial) and the judicial route (contentious).

1. Voluntary Recognition

This is a unilateral, formal, and irrevocable act by which a parent declares that he is the biological father of a minor. It can be carried out:

Note for foreign residents: If the child is of legal age, Article 124 of the Civil Code requires their express consent for the voluntary recognition to be effective. If the child is a minor, the consent of their legal representative (the mother) or judicial approval will be required.

2. Judicial Claim of Paternity

When the alleged father refuses to recognize the child voluntarily, or when the mother prevents such recognition, one must resort to the judicial route by filing a lawsuit for the claim of parentage (demanda de reclamación de filiación).

Article 767 of the Ley de Enjuiciamiento Civil (Civil Procedure Act) establishes that in paternity trials, investigation by all kinds of evidence, including biological evidence (DNA testing), will be admissible. Although no one can be physically forced to undergo a DNA test, an unjustified refusal to do so allows the court to declare paternity, provided there are other indications (cohabitation with the mother during the period of conception, letters, bank transfers, witness testimonies, etc.).

Step-by-Step Practical Guide: How to Claim Paternity Judicially

If you find yourself in a situation where you must judicially claim the paternity of a child, the process in Spain follows these steps:

  1. *Obtaining a principio de prueba (prima facie evidence):* Before filing the lawsuit, it is mandatory to provide a "start of proof" that justifies the claim (photos, text messages, emails, bank transfers, or testimonies showing the relationship between the mother and the alleged father during the period of conception). Without this, the court can dismiss the lawsuit immediately.
  2. Hiring professionals: You will mandatorily need the assistance of an Abogado (lawyer) and representation by a Procurador (court agent).
  3. Filing the lawsuit: It is filed before the Juzgados de Primera Instancia (Courts of First Instance—specifically Family Courts, if available) of the defendant's place of residence.
  4. *Admission and intervention of the Ministerio Fiscal (Public Prosecutor):* Since the rights of a minor are involved, the Public Prosecutor will always be a party to the proceedings to safeguard the child's best interests.
  5. Conducting the DNA test: The judge will order the biological paternity test to be carried out through the Instituto Nacional de Toxicología y Ciencias Forenses (National Institute of Toxicology and Forensic Sciences) or a judicially approved laboratory.
  6. *The oral hearing (vista oral):* Conclusions are presented, and the results of the DNA test are analyzed.
  7. Judgment and registration: The judge will issue a ruling determining paternity. Once it becomes final, the court will ex officio order the registration of the parentage in the minor's Civil Registry, which can include a change of surnames if requested.

The DNA test is the king of evidence in parentage proceedings due to its reliability of over 99.99%. However, not all DNA tests are legally valid in court.

Types of DNA Tests

Practical Examples with Figures

To understand the economic and legal impact of these processes, we analyze two common scenarios in Spanish courts:

Example 1: Paternity Claim and Retroactive Child Support

Carlos and Lucía had a short relationship from which Sofía was born. Carlos ignored the pregnancy. Lucía, a single mother with a monthly income of 1,200 €, decides to file a paternity claim lawsuit when the girl is 2 years old.

Example 2: Challenging Paternity Due to Deception

Manuel voluntarily recognized his partner's child, believing in good faith that the child was his. Two years after the birth, following a conflictive breakup, Manuel discovers through a private DNA test costing 150 € that he is not the biological father.

Mistakes You Must Avoid

Frequently Asked Questions (FAQ)

Can a foreign resident in Spain claim the paternity of a child born here?

Yes. Spanish courts have jurisdiction if the minor or the defendant has their habitual residence in Spain. The process is governed by Spanish law, guaranteeing the same rights as national citizens, regardless of the applicant's administrative or residency status.

What happens if the alleged father has passed away before the DNA test is done?

The paternity claim can be directed against the heirs of the alleged father. In this case, the DNA test can be performed using biological remains of the deceased (if preserved in a hospital or through an exhumation authorized by the judge) or through DNA samples from direct relatives of the deceased (grandparents, siblings, or uncles/aunts of the minor).

Can the mother object to the father voluntarily recognizing the child?

Yes. If the child was born out of wedlock and the mother does not consent to the father's voluntary recognition at the Civil Registry, the father must resort to voluntary jurisdiction proceedings (jurisdicción voluntaria) or file a judicial lawsuit to claim parentage so that his paternity is recognized via a DNA test.

Who pays the costs of the DNA test in a trial?

Generally, the party requesting the test must advance its cost. However, if the plaintiff has been granted the right to free legal aid, the cost is assumed by the State. At the end of the process, if the defendant is declared the father and court costs are imposed on him, he must reimburse these expenses.

Can the minor's surname be changed after paternity recognition?

Yes. Once paternal parentage is determined, the parents can agree on the order of the minor's surnames. If there is no agreement, the judge will decide within the parentage procedure itself, or the rules of the Civil Registry will apply, always seeking the best interests of the minor and the stability of their identity if they are already of legal age or an adolescent.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.