Berne is a town in Albany County, New York, United States. The population was 2,689 at the 2020 census. The town is at the western border of Albany County.
 The town of Berne  was originally spelled "Bern", until the Berne Post Office was established in 1825. It was created in 1795 from part of the town of Rensselaerville. In 1822 the northern half of Berne was spun off to form the new town of Knox.[citation needed]
 The earliest settlers were Palatine German refugees. Settlement began sometime before 1750. At that time, it was called Beaver Dam (also spelled Beaverdam). The settlers were actually squatters, since in the 18th and most of the 19th centuries, Berne was part of the Rensselaerswyck estate. The head of the Van Rensselaer family was the patroon who owned all the land on which the tenants in the Hudson Valley lived, and used feudal leases to maintain control of the region. Before the Revolutionary War, the patroons acted like feudal lords, with the right to make laws.[citation needed]
 During the War, inhabitants fought on both sides of the conflict. Loyalists who supported the British left and went to Canada. Those who stayed and fought the British expected that if they won, they would either be released from their tenancy, or at the least, be allowed to purchase the land at fair market value. Instead, the new government of New York decided to honor the lease contracts of the patroons, who contributed heavily to the politicians.[citation needed]
 The first meeting of the Town of Rensselaerville (which then included what are now known as the four "Hilltowns") was held in 1790 at the home of Johannes Fischer on Stranahan Lane. He may have been the wealthiest man in the town as he owned eight slaves in 1800. When the town of Bern was created in 1795, the first meeting was also held in the home of Johannes Fisher. It is now known as the Thomas Wood House.
 The massacre of the Dietz family in 1781 was the only Iroquois incursion in Beaver Dam during the Revolution.
 The first mass meeting of tenant farmers leading to the Anti-Rent War was held in Berne on July 4, 1839. In January 1845, one hundred and fifty delegates from eleven counties assembled in St. Paul's Lutheran Church to call for political action to redress their grievances.
 According to the United States Census Bureau, the town has a total area of 64.8 square miles (168 km2), of which 64.1 square miles (166 km2)  is land and 0.6 square miles (1.6 km2)  (0.99%) is water.
 As of the census of 2010, there were 2,794 people, 1,099 households, and 805 families residing in the town.  The population density was 43.6 inhabitants per square mile (16.8/km2).  There were 1,385 housing units at an average density of 21.6 per square mile (8.3/km2).  The racial makeup of the town was 97.89% White, 0.39% African American, 0.39% Asian, 0.07% Pacific Islander, 0.25% from other races, and 1.02% from two or more races. Hispanic or Latino of any race were 0.77% of the population.
 There were 1,099 households, out of which 33.9% had children under the age of 18 living with them, 59.0% were married couples living together, 8.6% had a female householder with no husband present, and 26.7% were non-families. 21.9% of all households were made up of individuals, and 7.4% had someone living alone who was 65 years of age or older.  The average household size was 2.59 and the average family size was 3.00.
 In the town, the population was spread out, with 25.4% under the age of 18, 5.9% from 18 to 24, 29.5% from 25 to 44, 27.2% from 45 to 64, and 12.0% who were 65 years of age or older.  The median age was 40 years. For every 100 females, there were 97.9 males.  For every 100 females age 18 and over, there were 99.0 males.
 The median income for a household in the town was $47,174, and the median income for a family was $55,685. Males had a median income of $37,324 versus $29,125 for females. The per capita income for the town was $22,095.  About 3.7% of families and 5.4% of the population were below the poverty line, including 6.3% of those under age 18 and 2.9% of those age 65 or over.
 42°37′31″N 74°08′00″W﻿ / ﻿42.62528°N 74.13333°W﻿ / 42.62528; -74.13333