You have to buy based on the TYPE of threads it is - as others mentioned, it's a pipe thread. That's different than an actual 1/2" measurement.
If you don't have a marine store nearby, buy it based on being a pipe thread. 3/8" pipe.
Or, measure more accurately and buy it based on it's OD...