When rectal pain is sharp, it may be due to an anal fissure, which typically causes jarring pain during bowel movements, or proctalgia fugax, a condition that can cause acute episodes of stabbing pain or cramps. Even large hemorrhoids or a perianal abscess can cause sharp pains during a bowel movement, particularly if you have constipation.