That's the largest ever penalty imposed by the agency for a single incident.
The EPA found that Philadelphia Energy Solutions failed to identify hazards posed by a corroded pipe.
The explosion caused $750 million in damage, shutting down the refinery and eliminating more than a thousand jobs.
Five people suffered minor injuries.