The fire broke out at about 3:45 a.m. Monday in a house on the 1900 block of East Ontario Street in the Port Richmond section of the city.
It only took 15 minutes for firefighters to gain control of the blaze.
The two injured men are 60 and 82 years of age.
They are in stable condition at a local hospital.
Investigators are looking for the cause of the fire.