Test the arithmetic before you build: lay a stack of parts on its side and see whether it ends on a stud column.
Add bricks, plates and half-plate walls to a sideways stack and watch where it ends against the stud columns.
The rule behind the result is in lesson 3: an even number of studs is a whole number of plates, an odd number never is.