JohnP is probably pretty conservative, since pressure limits are based on hoop stress in the pipe.
Assuming male and female joints are same material the answer would be based on the shear area equal to half the engagement length times the mean circumference (at pitch diameter)of the threads. Engagement should be conservatively estimated, since imperfect threads have limited capacity.