The length of time that someone tests positive for the coronavirus (COVID-19) can vary. Generally, people who test positive for the virus will remain positive for up to three weeks after the onset of symptoms. However, some people may test positive for longer periods of time, depending on the severity of their illness.