it depends on your diagnosis. a sore throat can be caused by viruses (contagious for a few days) strep (contagious for the entire time you have the strep) mono (contagious for the duration of the active phase of the disease) and a few dozen other things.
sore throat with fever how long am i contagious?