It's the same as measuring a monitor.
Place the tape measure or ruler diagonally across the screen from one corner to the other, and the number at the end is your phone's screen size.