Oven not heating too set temp

The oven does not heat to the set temperature. At 350 it is 325 and at 400 it is 370. I have verified this with 2 different oven thermometers. Is the thermostat bad? If so how do i replace it? Thanks for your help.