Connecting a washing machine or dishwasher is one of the more approachable plumbing jobs, and the two things that cause problems are the waste arrangement and forgetting the transit bolts.
What you need
A cold water supply with an isolating valve, and a hot supply too if the machine takes one, though most modern washing machines are cold fill only.
A waste connection.
A socket, which must be accessible and not behind the machine where it cannot be reached.
The water supply
Fit a proper washing machine valve, which is a screw-down valve with a threaded outlet for the machine hose.
Self-cutting or self-piercing valves clamped onto a pipe are widely sold and are best avoided. They restrict flow, are prone to leaking and blocking, and are not a good permanent connection.
Turn off the stopcock and drain the pipe before cutting into it.
Fit the valve into the pipe run using compression or push-fit fittings.
Connect the machine's inlet hose hand tight, then a modest turn with a spanner. These have rubber seals and are easily over-tightened and split.
Do not kink the hose or bend it tightly behind the machine.
The waste connection
Two common arrangements.
Into a trap spigot. Many sink traps have a blanked spigot for an appliance. Remove the blank, fit the hose and secure it with a clip.
Into a standpipe. A vertical pipe with its own trap, into which the machine hose is hooked.
The standpipe should be around 600mm high, and the manufacturer's instructions state the range. Too low and the machine siphons, emptying as it fills; too high and the pump struggles.
The hose must not be pushed too far down the standpipe, since it needs an air gap to prevent siphoning.
Where connecting to a trap spigot, the hose must rise to the height stated in the instructions before falling, for the same reason.
Never seal the hose into the standpipe airtight.
Transit bolts
Remove the transit bolts before running a washing machine.
These hold the drum still in transport, and running the machine with them in place causes serious damage.
They are usually three or four bolts across the back panel. Keep them, since they are needed if the machine is ever moved.
Levelling
More important than people think.
An unlevel machine walks across the floor on spin and is far noisier.
Adjust the feet until the machine is level in both directions and does not rock at any corner.
Lock the feet if they have locking nuts.
Check it again once loaded, and after the first spin.
Testing
Run a short empty cycle and watch it throughout.
Check the inlet connection at both ends, the waste connection, and the floor beneath.
Check during the spin and the drain, which is when the waste connection is under most pressure.
Put kitchen roll under the connections and check again after a full cycle and the next day.
Integrated machines
The connections must be made before the machine is pushed into the housing, which means having enough hose to work with and a plan for how it will be pulled out again.
Leave enough slack in hoses and cable, without kinking them.
The socket must remain accessible.
Dishwashers
The same principles, with a cold supply, a waste connection to a trap spigot or standpipe, and a socket.
The waste hose must rise to the height specified before falling, which is what stops dirty water siphoning back into the machine.
Remove the blanking plug from the trap spigot before connecting, which is a classic and messy oversight.
Points worth knowing
Fit a washing machine or dishwasher on a solid floor rather than a springy one where possible.
Turn the valve off when the machine is not in use for long periods, since burst inlet hoses are a common cause of household flooding.
Replace inlet hoses if they are old, perished or bulging.
Common faults after fitting
Machine fills and empties continuously: the waste hose is too low or pushed too far into the standpipe, so it is siphoning. Raise it and check the air gap.
Machine will not fill: the valve is off, the hose is kinked, or the inlet filter is blocked with debris from the pipework.
Loud banging on filling: water hammer, caused by the valve closing quickly. An arrestor or a longer pipe run usually cures it.
Machine moves on spin: transit bolts still fitted, or the feet are not level.