What a water heater replacement costs in Ontario

The price of a replacement water heater is the unit plus the install, and the install is where quotes differ. Here is what moves the number, and what it looks like if you rent instead of buying.
What decides the price
Four things: the type of heater (tank, tankless or heat pump), its size, how it is vented and fuelled, and how much work the install needs. A like-for-like tank swap where the vent and gas line already fit is the simple end. Moving to tankless, changing the vent, or upgrading the gas line is the expensive end, and those costs should be on the quote before you book.
Tank, tankless and heat pump
A tank costs less to buy and install and has fewer ways to go wrong. Tankless costs more up front, usually because of venting and gas supply work, and suits households that run out of hot water. A heat-pump water heater usually costs more to buy than a standard tank. What it costs to run depends on your electricity and gas rates and on where in the house it sits, so ask for that comparison for your own home. Which one is right depends on how your household uses hot water, not on which is newest.
What to ask for in a quote
Ask for a single price that names the unit, the install, the removal of the old tank, any venting or gas work, and taxes. Ask what is not included. Ask whether the price changes if the technician finds something on the day. A quote that cannot answer those three is an estimate, not a price.
If you rent instead
Renting turns the upfront cost into a monthly payment with installation and service included. Rental rates can rise each year under the rental agreement, so read the full terms before you sign.
Rent, finance or buy
Buying outright is cheapest over the long run if you will keep the heater for its full life. Financing spreads the same purchase over time. Renting costs more in total but removes the upfront bill, and service and repairs are included, apart from the exceptions in the rental agreement such as damage or misuse. If you plan to move within a few years, say so when you get a quote, because it changes which option makes sense.
When replacement beats repair
A tank past about ten years old that is leaking, or facing a repair that is a meaningful fraction of a new unit, is usually a replacement. A leak from the tank itself cannot be repaired. If it is only a valve or an element, repair is often the sensible call, and anyone who says otherwise without looking at it is guessing.