Cradlelore

Spanish Naming Customs: Double Surname Builder

In Spanish naming customs a child carries two surnames, one from each parent. Enter both parents' surnames, choose which comes first, and see the child's surnames and what is not passed on.

Updated 29 Oct 2026

Based on 1 sourceHow this is calculatedEmbed this tool

Which first surname comes first?

Runs in your browser. Names you type are not sent or stored.

The child's surnames

–

Under Spain's civil registry law the parents agree the order before registering, and the registrar decides in the child's best interest if they do not. This tool shows the result of that rule. It is not legal advice. ES-RC-2011

Quick answer

Updated 29 Oct 2026

A child in Spain gets 2 surnames: when both parents are recognized, each passes on their first surname, in an order they agree before registration (Ley 20/2011, article 49). García Martín and López Ruiz can give García López or López García; Martín and Ruiz are not passed on. ES-RC-2011

Spanish naming customs: how the two surnames are passed on

Spanish naming customs give a person two surnames, often called the first and second surname (primer y segundo apellido). Article 49 of Ley 20/2011 on the Civil Registry sets the rule for a birth: filiation determines the surnames, and when it is established through both lines the parents agree, before the birth is registered, the order in which each transmits their first surname. ES-RC-2011

  1. Take each parent's first surname.
  2. The parents agree which of the two comes first.
  3. If they do not agree, or the surnames were not stated in the application, the registrar asks them to state the order within three days; if they still do not, the registrar decides in the child's best interest.
  4. The order chosen for the first birth applies to later births with the same parents.

The builder above applies steps 1 and 2. It does not replace the registrar or give legal advice.

Examples

Three made-up couples, with the child's surnames in each order. "De la Cruz" is entered as one compound surname.

Child's surnames in both orders for three example couples
Parent 1Parent 2Parent 1's firstParent 2's firstNot passed on
García MartínLópez RuizGarcía LópezLópez GarcíaMartín, Ruiz
Fernández GilSánchez MorenoFernández SánchezSánchez FernándezGil, Moreno
de la Cruz VegaOrtiz Blancode la Cruz OrtizOrtiz de la CruzVega, Blanco

The next generation

Because each parent passes on only their first surname, a second surname stops with the person who has it. Take a child called García López. With a partner whose surnames are Pérez Soto, their child's surnames are García Pérez or Pérez García: López and Soto are not passed on. ES-RC-2011

Before you register

The law puts the choice of order in the parents' hands before the birth is registered, so it helps to settle it early. The steps below come from article 49. ES-RC-2011

  • Decide together which parent's first surname comes first. The builder shows both orders so you can say them aloud.
  • State the order in the registration application. If it is missing, the registrar asks you for it within three days.
  • Remember that the order applies to later children with the same parents, so choose one you are happy to use for all of them.
  • Keep the name (nombre) separate in your mind from the surnames: the record holds the name given to the child as well as the surnames.

If you want the baby's first name too, try the baby name generator or keep a list in the name shortlist.

Limits of this tool

  • It follows Spain's law for a birth with two recognized parents. For a birth with only one recognized parent, the law says that filiation determines the surnames and the parent may determine the order. ES-RC-2011
  • The order can be inverted later: the law lets the registrar authorise this on the declaration of the person concerned (article 53). ES-RC-2011
  • Other countries set their own rules. If the birth is registered outside Spain, check that register office.
  • It does not list Spanish surnames or their meanings. Meanings need a cited source for each surname, and this page has none yet.

The consolidated text of the law on the BOE website is informational, so check the official publication for legal purposes.

Questions

How do Spanish surnames work?
When a child's filiation is established through both parents, the child's surnames are each parent's first surname, in an order the parents agree before registration. The law is article 49 of Ley 20/2011 on the Civil Registry. ES-RC-2011
Which surname comes first?
The parents choose. If they disagree, or the surnames were not stated in the application, the registrar asks them to state the order within three days and, if they still do not, decides in the child's best interest. ES-RC-2011
Do later children have the same order?
Yes. The order set at the first registration of a birth determines the order for later births with the same parents. ES-RC-2011
Which surnames are passed on to the next generation?
Each parent passes on their first surname, so a second surname stops with the person who has it. If García López has a child with Pérez Soto, the child's surnames are García Pérez or Pérez García. López and Soto are not passed on. ES-RC-2011
What if only one parent is recognized?
The law says that when only one filiation is recognized, that filiation determines the surnames, and the parent may determine the order. This tool covers the usual case of two recognized parents. ES-RC-2011
Can the order of surnames be changed later?
The law lets the registrar authorise, on the declaration of the person concerned, the inversion of the order of surnames (article 53). Ask your registro civil what applies in your case. ES-RC-2011
Does this apply outside Spain?
The tool follows Spain's law. Other Spanish-speaking countries have their own rules on surnames, so check the register office of the country where the birth is registered.
What does the birth record contain?
Article 49 says the record of a birth includes the child's identity data: the name given to the child, the place, date and time of birth and the child's sex. The surnames are set by the rule above. ES-RC-2011
What is a first surname and a second surname?
In Spanish naming customs a person's first surname (primer apellido) comes first and the second surname (segundo apellido) after it. The law speaks of each parent's "respectivo primer apellido", the first surname of each parent, which is what the builder passes on. ES-RC-2011
Are the surnames I type saved?
No. Everything runs in your browser, and nothing is sent or stored.

Sources and method

Numbers this tool calculates come from tested code in formulas.ts. Figures taken from a source are cited next to the figure. See all of our formulas and sources and how we check our work in the editorial policy.

Related tools

See all baby name tools.

Use this calculator on your site

This calculator gives an estimate. It does not replace advice from your doctor, midwife or fertility clinic. Read our medical disclaimer. How your data is handled: privacy policy.