There are many types of piano chords, Like Major, Minor, Suspended, Fifth and many more.
There are seven notes in an octave named Sa Re Ga Ma Pa Dha Ni.
And a total of 12 keys in an octave.
We can make every chord by these keys.
#Now suppose you're now on the first key named SA.
#give 1-12 number to all line-wise keys and follow the instructions.
Names of 12 keys starting from Sa.
C#, D, D#, E, F, F#, G, G#, A, A#, B, C
Your root key will decide the chord name, means which chord you want to play.
The formula starts from there.
MAJOR CHORD FORMULA... 1-5-8
MINOR CHORD FORMULA.. 1-4-8
FIFTH CHORD FORMULA.. 1-8
NOTE: now suppose you want to make a major chord from "D". Then start counting from "D" Key and apply the significant chord formula.
And the chord name will D major.
Same for other chords.
Thank You!