() of . , 10.5% of the population are foreign nationals. Over the last 10 years (1997–2007) the population has changed at a rate of 10%. Most of the population () speaks German (95.4%), with Serbo-Croatian being second most common (1.6%) and Italian being third (1.1%). , the gender distribution of the population was 51.4% male and 48.6% female. The population was made up of 825 Swiss men (45.5% of the population), and 106 (5.8%) non-Swiss men. There were 798 Swiss women (44.0%), and 84 (4.6%) non-Swiss women. In there were 17 live births to Swiss citizens and 2 births to non-Swiss citizens, and in same time span there were 12 deaths of Swiss citizens and 1 non-Swiss citizen death. Ignoring immigration and emigration, the population of Swiss citizens increased by 5 while the foreign population increased by 1. There was 1 Swiss man, 1 Swiss woman who emigrated from Switzerland to another country, 15 non-Swiss men who emigrated from Switzerland to another country and 14 non-Swiss women who emigrated from Switzerland to another country. The total Swiss population change in 2008 (from all sources) was a decrease of 24 and the non-Swiss population change was an increase of 25 people. This represents a population growth rate of 0.1%. The age distribution, , in Hauptwil-Gottshaus is; 209 children or 11.7% of the population are between 0 and 9 years old and 246 teenagers or 13.8% are between 10 and 19. Of the adult population, 243 people or 13.6% of the population are between 20 and 29 years old. 243 people or 13.6% are between 30 and 39, 296 people or 16.5% are between 40 and 49, and 251 people or 14.0% are between 50 and 59. The senior population distribution is 162 people or 9.1% of the population are between 60 and 69 years old, 83 people or 4.6% are between 70 and 79, there are 46 people or 2.6% who are between 80 and 89, and there are 10 people or 0.6% who are 90 and older. , there were 639 private households in the municipality, and an average of 2.8 persons per household. there were 279 single family homes (or 80.2% of the total) out of a total of 348 inhabited buildings. There were 30 two family buildings (8.6%), 9 three family buildings (2.6%) and 30 multi-family buildings (or 8.6%). There were 388 (or 20.3%) persons who were