The shooting happened a little after 8 p.m. on the 7200 block of Mingo Street.
Pittsburgh Public Safety said police first responded to a ShotSpotter alert in that area.
A short time later, the two men showed up at a Pittsburgh-area hospital.
Both were last listed in stable condition.
No arrests have been announced.