What to try first, what makes it worse, and how to tell ice from a lock that has failed.

It is early, it is well below freezing, and the car door will not budge. Or the house key slides halfway into the deadbolt and stops. Ice has formed somewhere it does not belong, and you still have to be somewhere.
Most frozen locks and doors can be dealt with using things you already own, as long as you know which ones help and which ones leave you with a snapped key, a torn door seal or a cracked window. This guide covers cars, house doors and outdoor padlocks, in the order you would work through them while standing in the cold.
It is written for anyone in a part of the country that sees a hard frost. That includes the Great Lakes, the Upper Midwest, New England and the Mountain West, where a frozen lock is a routine winter event, and places further south where one ice storm a year catches everybody off guard.
For most frozen locks and doors, the order looks like this:
There is one exception to working down that list. If a child, an older person or a pet is shut inside a cold car or a house with no heat, or if you are the one outside with no shelter and no warm place to wait, treat it as an emergency. Call local emergency services first. Cold harms people sooner than most expect, and no lock is worth that.
For the wider question of a child or an animal on the other side of a locked house door in any season, see the guide on being locked out with a child or a pet inside.
Before you reach for anything, take a moment to find out where the ice is. There are three usual places.
On cars, the seal is very often the real cause. Plenty of people who think they have a frozen lock have a frozen door. That matters, because de-icer squirted into a keyhole does nothing for a seal, and pulling hard on the handle does nothing good for anything.
A simple test: unlock the car with the fob or the key, then watch and listen. If the lock button pops up, the lights flash or you hear the usual clunk, the lock has done its job. What is left is the seal or the latch.
Begin with the least effort and work up.
What you are trying to avoid is the big heave on the handle. Door handles, especially the plastic kind on many newer cars, can snap when they are cold and brittle. A weatherstrip that tears away as the door finally opens will let in wind and water until it is replaced.
If no door will open and the keys are inside, or the car has to be opened another way, the car lockout page explains how a vehicle is opened with tools made for the job.
Many newer cars have a single keyhole, on the driver's door, sometimes hidden under a small cap. Owners may go years without using it. That is exactly why it can be holding old moisture and grit on the morning the fob gives up in the cold.
These are the options, in the order worth trying:
Whatever you use, turn the key with two fingers and not your whole fist. If it will not turn under light pressure, the ice has not gone yet. Car keys are thin, and a blade that twists off in a door lock adds a second job to the morning. The broken key extraction page describes what removing the piece involves.
Cold is hard on small batteries. A fob that has been getting weaker for weeks will often choose the coldest morning of the year to stop. It looks like a frozen car, but it is a power problem.
If the range of your fob has been shrinking, put in a new coin cell before winter. If a fresh battery does not bring it back, the key fob programming page covers what can be checked from there.
House locks freeze less often than car locks, because the inside half of the lock sits in a heated building. It happens most on doors that face the weather with no storm door or porch roof over them, on unheated garages and outbuildings, and on vacant or seasonal homes where the heat is turned down.
Before anything else, walk around the house. A door on the sheltered side, the door from an attached garage or a back door under a deck may be working normally.
If every door is stuck, the same question applies as with a car: is it the lock, or is it the door?
The key will not go in or will not turn. Use lock de-icer or a warmed metal key, exactly as you would on a car. A hair dryer is easier here, since an outdoor outlet or a neighbor's extension cord is often within reach. Be patient, and keep the turning pressure light.
The key turns but the bolt will not slide. This is usually not ice inside the lock at all. Doors and frames move with the seasons. Wood swells when it is damp, metal shrinks a little in the cold, and frozen ground can shift a threshold. The bolt ends up rubbing on the strike plate in the frame. Pull the door firmly toward you, push it in, or lift on the handle while you turn the key. If one of those lets the bolt move, the lock is healthy and the door or the strike needs adjusting before the next cold snap.
The door itself is stuck. Ice along the threshold, or a weatherstrip frozen to the door, will hold it shut with the lock fully open. Push and pull in short, firm movements to crack the bond, and clear any ice you can see along the bottom edge. A storm door frozen at its bottom sweep is a common version of this.
Electronic locks add a battery to the picture. Cold weakens batteries, and a motor that threw the bolt easily in October may stall against a tight door in January. If the keypad lights up and the bolt only moves partway, help it by pushing or pulling the door as it runs. If the lock is dead, use the backup key if your model has one. The smart locks page goes further into power and alignment problems.
If none of the doors can be opened, the house lockout page describes how a technician gets a door open and what you will be asked to show.
A note for renters: a lock that sticks or freezes in every cold snap is a maintenance problem with the landlord's hardware, so report it. Our guide on being locked out of a rental explains who to call and in what order.
Locks that live fully outdoors have it worst. Rain and meltwater run into the keyway and the shackle holes of a padlock and then freeze there.
Ice is a temporary problem. Once it melts, a healthy lock works again. Call when the signs point to something other than ice, or when carrying on alone is likely to break something.
Call 24 Hour Locksmith at (844) 977-0900 and say at the beginning of the call that the lock or the door is frozen, so the technician knows what they are driving to. Mention what you have already tried, including hot water if you used it, and whether you have a warm place to wait. The emergency locksmith page explains how urgent calls are handled, and the contact page lists the other details dispatch asks for.
Nearly all of this comes down to keeping water out and keeping parts moving. Pick a dry, mild day in the fall.
More plain guides for lock and key problems are listed on the guides page.
Tell dispatch the lock or door is frozen and whether you have a warm place to wait.