The invention relates to fused piperidine amides useful as inhibitors of ion channels for the treatment of pain. The invention also provides pharmaceutically acceptable compositions comprising the compounds of the invention and methods of using the compositions in the treatment of various disorders.