In music theory, a comma is a minute interval, the difference resulting from tuning one note two different ways. The word comma used without qualification refers to the syntonic comma, which can be defined, for instance, as the difference between an F♯ tuned using the D-based Pythagorean tuning system, and another F♯ tuned using the D-based quarter-comma meantone tuning system.
Within the same tuning system, two enharmonically equivalent notes (such as G♯ and A♭) may have a slightly different frequency, and the interval between them is a comma. For example, in extended scales produced with five-limit tuning an A♭ tuned as a major third below C5 and a G♯ tuned as two major thirds above C4 is not exactly the same note, as they would be in equal temperament. The interval between those notes, the diesis, is an easily audible comma (its size is more than 40% of a semitone).
Commas are often defined as the difference in size between two semitones. Each meantone temperament tuning system produces a 12-tone scale characterized by two different kinds of semitones (diatonic and chromatic), and hence by a comma of unique size. The same is true for Pythagorean tuning.