Hersiwil is a former municipality in the district of Wasseramt in the canton of Solothurn in Switzerland. On 1 January 2013 the former municipalities of Heinrichswil-Winistorf and Hersiwil merged to form the new municipality of Drei Höfe. Hersiwil is first mentioned in 1324 as Hersenwile. It formed a double municipality with Heinrichswil until 1798, when Winistorf joined the other two to form the triple municipality of Hersiwil-Heinrichswil-Winistorf. In 1854 it split into three, separate, independent municipalities. In 1993, Heinrichswil and Winistorf merged again, but Hersiwil remained independent. Hersiwil had an area, , of . Of this area, or 67.8% is used for agricultural purposes, while or 22.4% is forested. Of the rest of the land, or 6.3% is settled (buildings or roads), or 1.4% is either rivers or lakes and or 0.7% is unproductive land. Of the built up area, housing and buildings made up 2.8% and transportation infrastructure made up 3.5%. Out of the forested land, all of the forested land area is covered with heavy forests. Of the agricultural land, 43.4% is used for growing crops and 21.0% is pastures, while 3.5% is used for orchards or vine crops. All the water in the municipality is flowing water. The agricultural former municipality is located in the Wasseramt district. The blazon of the municipal coat of arms is Or a Ploughshare doubled Sable. Hersiwil has a population () of 190. , 1.7% of the population are resident foreign nationals. Over the last 10 years (1999–2009 ) the population has changed at a rate of 7.1%. It has changed at a rate of 5.3% due to migration and at a rate of -2.4% due to births and deaths. Most of the population () speaks German (167 or 99.4%) with the rest speaking Portuguese the gender distribution of the population was 48.4% male and 51.6% female. The population was made up of 87 Swiss men (47.8% of the population) and 1 (0.5%) non-Swiss men. There were 93 Swiss women (51.1%) and 1 (0.5%) non-Swiss women. Of the population in the municipality 66 or about 39.