gavel(The Canadian Press)

A Calgary man has been found not criminally responsible for killing five people in a stabbing rampage.

A judge delivered the verdict today in the first-degree murder trial of Matthew de Grood.

The 24-year-old son of a police officer admits he killed five people at a Calgary house party on April 15, 2014.

But both the defence and the Crown agree he was suffering from a mental disorder at the time.

The trial heard de Grood became withdrawn about a month before the attack and started posting about the end of the world, religion, vampires and Darth Vader on Facebook.

Killed in the attack were Kaitlin Perras, Lawrence Hong, Josh Hunter, Zackariah Rathwell and Jordan Segura.