Check the back of the stove for the amperage rating of the stove and breaker. A placard or sticker will designate the power requirements for the stove. New range cables come with either a 40-amp or 50-amp rating.
Buy a new 4-prong cord of the appropriate length for your stove with the correct amp rating. The cord will be labelled as a range cord.
Remove the existing 3-prong cord from the stove. Access the cord connections through the panel in the back of the stove and note the positions where the different colored wires are connected. The neutral wire is usually white and the screw or bolt holding the neutral wire will be connected to a ground screw by a metallic strap or wire.
Remove the grounding strap connecting the neutral and ground screws. You may have to loosen or remove both screws to get the strap out.
Install the new power cord, attaching the colored wires to the appropriate screws or posts. The black and red wires are hot wires and the positions are interchangeable. The white wire goes to the neutral screw and the green wire to the ground screw.
Recheck that all connections are secure and the wires have been correctly attached. Replace the cover panel, and your stove with a new 4-prong cord is ready to go.