The easiest way, if you are replacing an existing item is to look at the body of the part to see if the size is stated.
To measure, you need the measure the widest thread on the male thread, see here
Check out our blog post What is the difference between 1 piece, 2 piece and 3 piece ball valves?