Remain calm. Though easier said than done, staying calm enables you to react properly. Remember that a whirlpool does not have the strength required to sink a person.
Keep your head out of the water. Avoid swimming underwater because you may reach a deeper part of the whirlpool and not realize how far away you are from the surface.
Use your arms to make long, powerful strokes. Use your legs to flutter kick. This is the most powerful swimming stroke in a whirlpool.
Swim diagonally out of the whirlpool. This will allow you to work with the current as opposed to against it.
Pace yourself. It can take minutes of vigorous swimming to get out of a whirlpool, so use your energy wisely.
Swim as far away from the whirlpool as possible until rescued. You do not want to risk ending up back in the whirlpool because of being swept by a current, so swim to safety as soon as you get out of the whirlpool.