Formula == root + major third + minor third.
C major triad == root (c), major third (e), minor third (g).
F major triad == root (f), major third (a), minor third (c).
G major triad == root (g), major third (b), minor third (d).
Etc.
Formula == root + minor third + major third.
C minor triad == root (c), flat third / minor third (e♭), perfect fifth / major third (g).
F minor triad == root (f), minor third (a♭), major third (c).
G minor triad == root (g), minor third (b♭), major third (d).
Formula == root + major third + minor third. C major triad == root (c), major third (e), minor third (g). F major triad == root (f), major third (a), minor third (c). G major triad == root (g), major third (b), minor third (d). Etc.
Formula == root + minor third + major third. C minor triad == root (c), flat third / minor third (e♭), perfect fifth / major third (g). F minor triad == root (f), minor third (a♭), major third (c). G minor triad == root (g), minor third (b♭), major third (d).
Note: A perfect fifth spans 7 semitones
Chord references: https://en.wikipedia.org/wiki/Major_chord#Major_chord_table https://en.wikipedia.org/wiki/Minor_chord#Minor_chord_table