Doctors suspect porphyria based on signs and symptoms. They confirm it with blood, urine, or stool tests. These tests check for porphyrin levels. Genetic tests can also pinpoint the exact type of porphyria someone has.