Häfelfingen is a municipality in the district of Sissach in the canton of Basel-Country in Switzerland.
Häfelfingen is first mentioned in 1358 as Hevelingen.
Häfelfingen has an area, , of . Of this area, or 58.6% is used for agricultural purposes, while or 34.6% is forested. Of the rest of the land, or 6.3% is settled (buildings or roads).
Of the built up area, housing and buildings made up 4.0% and transportation infrastructure made up 1.5%. Out of the forested land, 32.6% of the total land area is heavily forested and 2.0% is covered with orchards or small clusters of trees. Of the agricultural land, 19.7% is used for growing crops and 32.3% is pastures, while 6.6% is used for orchards or vine crops.
The municipality is located in the Sissach district, in a side valley off the Homburger valley. It consists of the village of Häfelfingen and eleven scattered houses or small settlements.
The blazon of the municipal coat of arms is Or, a Cauldron Sable, in chief Sable.
Häfelfingen has a population () of . , 4.5% of the population are resident foreign nationals. Over the last 10 years (1997–2007) the population has changed at a rate of 5.5%.
Most of the population () speaks German (245 or 91.4%), with Mazedonisch being second most common (7 or 2.6%) and Spanish being third (4 or 1.5%). There is 1 person who speaks French.
the gender distribution of the population was 51.1% male and 48.9% female. The population was made up of 256 Swiss citizens (94.8% of the population), and 14 non-Swiss residents (5.2%) Of the population in the municipality 101 or about 37.7% were born in Häfelfingen and lived there in 2000. There were 81 or 30.2% who were born in the same canton, while 53 or 19.8% were born somewhere else in Switzerland, and 31 or 11.6% were born outside of Switzerland.
In there were 2 live births to Swiss citizens and 1 death of a Swiss citizen. Ignoring immigration and emigration, the population of Swiss citizens increased by 1 while the foreign population remained the same. There was 1 Swiss man and 1 Swiss woman who emigrated from Switzerland.