Is there a way to tell if my canker sore is infected?

Perhaps. A canker sore in the mouth is very painful and can last up to about 10 days. If it isn't healing and continues to grow or has a lot of redness surrounding it, have it checked by a dentist to be sure it isn't something else.