The lymph nodes can remain swollen for as long as there is a medical condition causing them to swell. For infections, swelling can last a couple of weeks before the nodes return to their normal size. For systemic inflammation and cancers, the swelling may remain for longer periods of time.