As of January 1, 2014, Spain had a total population of 46,507,760, which represents a 0.5% decrease since 2013. The CIA Factbook (2011) gives a racial description of "composite of Mediterranean and Nordic types" under "ethnic groups" instead of the usual breakdown of ethnic composition. This reflects the formation of the modern Kingdom of Spain by the accretion of several independent Iberian realms, i.e., León, Castile, Navarre, the Crown of Aragon, Granada, etc. Spain's population peaked in 2012, at 46,818,216 people. Spain's official population fell by 206,000 to 47.1 million, mostly because of immigrants returning home due to the effects of the European economic and fiscal crisis. Its population density, at 91.4 inhabitants per square kilometre (237/sq mi), is lower than that of most Western European countries. With the exception of the capital Madrid, the most densely populated areas lie around the coast.
The population of Spain doubled during the twentieth century, but the pattern of growth was extremely uneven due to large-scale internal migration from the rural interior to the industrial cities, a phenomenon which happened later than in other Western European countries. No fewer than eleven of Spain's fifty provinces saw an absolute decline in population over the century.
The last quarter of the century saw a dramatic fall in birth rates. Spain's fertility rate of 1.47 (the number of children the average woman will have during her lifetime) is lower than the EU average, but has climbed every year since the late 1990s. The birth rate has climbed in 10 years from 9.10 births per 1000 people per year in 1996 to 10.9 in 2006.
Spain has no official religion. The Spanish Constitution of 1978 abolished the Roman Catholic Church as the official state religion, while recognizing the role it plays in Spanish society. 76.7% of the population define themselves as Catholic, 20.0% as non-believers or atheists, and 1.6% other religions. Among believers, 55.3% assert they almost never go to any religious service, by contrast, 17.0% attend one or more masses almost every week.