You are standing in front of an opening that has been there for years. Before any new machine is chosen, that opening is the spec that matters most. Measure it as it is now, not as the old machine left it.
Take the opening in three places
Measure the width at the top, the middle, and the floor. Walls and cabinet sides drift out of square, and the narrowest point is the one the machine has to pass. Write down the smallest reading.
Measure the height from the finished floor to the underside of the countertop or the top of the opening. If new flooring is planned for the alcove, measure after that work or add the thickness of the flooring to your note.
Measure the depth from the back wall to the front face of the finished trim. Note whether the door trim or the cabinet face projects forward. This is the depth the machine has to sit within.
Read what the listed size includes
A spec sheet may give a width and depth that leave out the door, the handle, the hose connections, the vent cover, or the power cord. Ask which parts are counted. Then add the missing parts to your depth before you decide anything.
Check whether the depth is given with the door closed or opened to its stop. A front-load door or a drop-down dishwasher door needs clear room in front of the opening to swing.
Plan the room behind and beside the machine
The back of the opening holds the working parts. For a clothes washer, that means the water valves and the drain standpipe, and their position may not match the length of the new hoses. For a clothes dryer, the vent exit and the elbow take space and need the clear run the manual specifies. For a dishwasher, the supply line, the drain connection, and the cabinet floor all sit where the old unit sat. Compare the new unit's connection points against what is already in the wall.
Look for the minimum side clearance in the manual. Some units need a small gap on each side for air or for the door hinge. An alcove that appears to fit can leave no room for the hinge.
Check the floor, the toe kick, and the leveling range
Set a level on the floor of the opening. A floor that falls toward the front or to one side changes the height of the top edge and can change how the door closes. Find the adjustable foot range in the manual. If the range is small, the floor has to be right before the machine goes in.
For a dishwasher or other built-in unit, check the toe kick. The space at the bottom of the cabinet may be shorter than the unit's listed height, and a unit that is too tall will not sit flush under the counter.
Test the path before the machine is bought
The machine also has to reach the alcove. Measure the doorways, the turns, the stair width, and any landing between the delivery door and the opening. Tape the outline of the footprint on the floor and walk it along the route. Stand the unit in the alcove and open the door through its full swing. A cardboard template cut to the listed footprint shows the fit before anyone moves a heavy box.
Questions to ask before you choose
Ask the seller or installer which dimensions they used and whether those include the door, the handle, and the hoses. Ask for the install clearance figures from the manual. Ask whether the connections in the wall match the new unit or whether an adapter or a longer line will be needed. Ask who confirms the fit on delivery day, and what happens if the opening turns out smaller than the paper says.
Compare the options on fit first
Compare the listed footprint, the door style, and the clearance rules side by side. A compact unit, a front-load unit, and a top-load unit of similar capacity can have different depths and different door swings. Let the opening decide which footprints are possible, then compare what is left.
Keep the measurement sheet, the template, and the manual together in the home file. The next person to replace this machine will need the same numbers. For planning dates on each appliance, see the appliances ranked by typical service life page, and the guides for the clothes washer and the dishwasher.