Whichever the cause, the length of time that you will be cramping will be determined by that cause. UTI cramps may continue until you seek medical attention and implantation cramps last just a few hours to a few days.