The heat-up math
°F per hour = heater kW × 3,412 × efficiency ÷ (gallons × 8.34)
hours = (target − start) ÷ °F per hour
One BTU warms one pound of water by 1°F, a gallon of water weighs 8.34 pounds, and a kilowatt of electric heat is 3,412 BTU an hour. An electric heater turns all of its power into heat, but some of that heat leaves through the surface and cabinet while the tub warms. This calculator counts about 90% of it as reaching the water with the cover on, and about 60% with it off.
A worked example
A 350-gallon spa with a 4 kW heater, filled with 50°F water, cover on. 4 × 3,412 × 0.9 ÷ (350 × 8.34) ≈ 4.2°F an hour. The 52 degrees to 102°F take about 12½ hours and roughly 49 kWh, around $8.40 at 17¢. Fill in the morning and it's ready that night.
Heating it faster
Keep the cover on and latched. Start with the warmest fill water you can, since your house water heater is far bigger than a spa heater. Run the jets with the air controls closed, because open air jets blow cold outside air through the water. Some spas can't run the heater and the high-speed pump at the same time on a 120-volt circuit, so check the manual if it seems slow.
Once it's up to temperature, the hot tub electricity cost calculator estimates what it costs to keep it there each month. After a fresh fill, the startup calculator gives every first-fill chemical dose, and the drain calculator tells you when you'll be doing this again.