All the electrical panels, be it the main panel or the subpanel, should have 36 inches of clearance in the front, 30 inches across the panel's face, and 78 inches from the top edge of the panel to the floor.