The cause is a buildup of lactic acid, a natural byproduct of exertion that your muscles produce. Delayed onset muscle soreness (DOMS) is another common pain. DOMS is a generalized ache that begins after your workout. The feeling may begin at a few hours after your workout or up to a couple of days later.