A new electrical panel cost between $100.00 to $200.00 depending on the amperage and then around $70.00 to $150.00 for the circuit breakers depending how many circuit breakers your electrical panel has.
So if you can install the new electrical panel yourself $170.00 to $300.00 to install the new electrical panel.
But if you need to hire an electrician to replace the electrical panel it can cost around $500.00 to $1,500.00 for the parts and installation of the electrical panel.