The CDC advises the majority of people to get the booster shot at least five months following the last dose in the primary series, either the Pfizer-BioNTech or Moderna COVID-19 vaccine. However, immunocompromised people should get the booster shot at least three months after the last treatment in the original series.