Use i before e except after c or when sounded like ay, as in neighbor and weigh.
I BEFORE E
relieve, believe, sieve, niece, fierce, frieze
E BEFORE I
receive, deceive, sleigh, freight, eight
EXCEPTIONS
seize, either, weird, height, foreign, leisure