The recent deep freeze may have you pondering warmth at any cost, including for your driveway.

Heated driveways keep the pavement warm enough to melt snow on contact and prevent ice from building up on the surface. This not only negates the need for snow shoveling, but it also makes for a much safer walk to the car. What’s more, a heated driveway will not have to be treated with salt and other snow-removing chemicals.

There are two types of driveway heating systems available, both of which generate radiant heat under the driveway’s surface to keep the pavement warm. The first heating method uses an electric current to generate heat on a wire or across a mat, in almost exactly the same manner as most indoor floor-heating systems. The second method uses a series of tubes and pumps to move hot water directly underneath the driveway to warm the surface above.

There are a number of cost factors associated with the installation of a driveway heating system — including the type of system you’re installing, the cost of materials in your area and whether an existing driveway will need to be demolished to make way for the new heated driveway. If you’ll have to demolish an existing driveway to install the heating system, the cost will be around $14 to $24 per square foot. In this scenario, a 20- by 50-foot driveway typically costs more than $15,000.

Of course, there’s also the cost of operating the system. Water-based systems are usually a little more expensive initially, but you’ll recoup those costs over the longer term as they will operate using less energy than electric-based mat and wiring systems. You’ll also have the option of installing an automated sensor that turns the system on when it starts snowing, which can add to both installation and operational costs.

This is typically a project best left to professionals who have much more experience with heating systems than the average homeowner.

If a heated driveway isn’t feasible, heated mats may be a good alternative. You can place heated mats over your driveway and also over sidewalks and entrances to prevent snow accumulation. Prices vary based on the size of the mat, with larger mats costing around $1,000.