Colic is primarily diagnosed based on the "rule of threes": crying for more than three hours a day, three days a week, for at least three weeks. A healthcare provider will also perform a physical examination to rule out other potential causes of excessive crying, such as infections or other medical conditions.