In most cases, a person can be contagious for about 24-72 hours after contracting the flu virus and will remain that way for up to 5 days after the onset of symptoms. people with compromised immune systems can be contagious to those around them for up to 2 weeks.