We present a protocol for bending filamentous bacterial cells attached to a cover-slip surface with an optical trap to measure the cellular bending stiffness.