 According to the United States Census Bureau, the township has a total area of , of which is land and , or 0.17%, is water.Fairview is close to the state capital, Harrisburg, which is in Dauphin County.