A West Australian government school has banned students from reciting the Lord's Prayer before assembly in response to complaints from parents.

Edgewater Primary School, in Perth's north, ended the 25-year practice after some parents said it contravened the WA Education Act, which stipulates schools cannot favour one religion over another.

Edgewater principal Julie Tombs sent a letter to parents on Monday saying the prayer would no longer be recited before each fortnightlyassembly.

She said although most students' parents favoured the tradition, only 36 per cent responded to a survey asking for their views.

"We acknowledge that of the parents who did respond to the survey, many wanted to retain the Lord's Prayer and it is right that we continue to recite it at culturally appropriate times such as Christmas and Easter, as part of our educational program," Ms Tombs said in a statement.