There are many times when homeowners, electricians, contractors and others (like me) will need to have access to and around the electrical panel for various reasons. Because of this, it is typically advised to have a 36-inch clearance in front of the panel and a 30-inch clearance on each side.
I recommend creating/providing clearance adhering to the above standards to allow easier access to electrical panels within your home.