Foot cramps happen when a muscle in your foot suddenly squeezes and can’t relax. The feeling you get ranges from a slight tic to an intense spasm that causes a lot of pain. Foot cramps are usually harmless. Often, you can take care of the pain yourself at home.