The earliest existing historical records of the church date back to the year 1240 when the church was mentioned in the book Hákonar saga Hákonarsonar. The original church was built at Sandnes about 2 kilometres (1.2 mi) southwest of the present church site. In 1644, the old church was torn down and a new church was built on the same site. The new church was a timber-framedcruciform building with an entry porch on the west end and a small sacristy on the east end.[3]
In 1767, the area of Leirfjord was added to the parish, so it was decided that the church site should be moved to Stamnæs, about 2 kilometres (1.2 mi) to the northeast so that it would be more centrally located within the parish. So in 1768, a new cruciform church was completed at Stamnæs and the old church in Sandnæs was torn down. In 1774, there was a fire in the church that caused some damages and needed to be repaired.[3]
In 1882, the old church was torn down and replaced with a new church on the same site. Some of the materials from the old church were reused in the construction of the new building. The church was consecrated on 31 July 1882 by the bishop Jacob Sverdrup Smitt.[4][5]