Key Signature Calculator

Find the sharps, flats, accidental order, and relative key for any standard major or minor key.

Calculate a key signature
Enter a tonic using a letter and optional sharp or flat, then choose the scale type.

About key signatures

A key signature is the group of sharp or flat symbols printed after the clef at the beginning of a staff. It tells performers which pitches are normally raised or lowered throughout the music. This calculator identifies the signature for every conventional major key and natural minor key, lists its accidentals in their standard written order, and shows the relative key that uses exactly the same notes. That makes it useful for reading notation, checking a composition, preparing an arrangement, or reviewing music theory. Sharp signatures always accumulate in the order F sharp, C sharp, G sharp, D sharp, A sharp, E sharp, B sharp. Flat signatures use the reverse-style order B flat, E flat, A flat, D flat, G flat, C flat, F flat. A new key adds one accidental without changing the order of those already present. C major and A minor sit at the center with no sharps or flats. Moving clockwise around the circle of fifths adds sharps, while moving counterclockwise adds flats. Major and minor keys can share a signature while placing a different note at the tonal center. These pairs are called relative keys. C major is relative to A minor, G major is relative to E minor, and E flat major is relative to C minor. The shared signature does not mean the music sounds identical: melody, harmony, cadences, and emphasis establish which tonic feels like home. Harmonic and melodic minor passages may also introduce temporary accidentals that are not part of the printed key signature. Enter accidentals as a number sign or lowercase b, such as F# or Bb. The calculator also accepts the musical sharp and flat symbols. Enharmonic notes can sound at the same pitch but have different theoretical spellings, so F sharp major and G flat major produce different written signatures. The selected spelling matters to performers because it preserves scale-letter order and harmonic function. Use the result as a quick notation reference rather than a substitute for reading the musical context. Modal music, atonal scores, transposing instruments, and pieces that change key can require additional interpretation. For ordinary major and minor scales, however, the displayed signature follows standard circle-of-fifths conventions and provides an immediate, dependable answer.

Key signature examples

KeySignatureRelated information
G major1 sharp: F sharpIts relative key is E minor.
E flat major3 flats: B flat, E flat, A flatIts relative key is C minor.
F sharp minor3 sharps: F sharp, C sharp, G sharpIts relative key is A major.
A minorNo sharps or flatsIts relative key is C major.

How to calculate a key signature

  1. Enter the tonic letter and include a sharp or flat when the key name requires one.
  2. Choose Major or Minor to identify the scale quality.
  3. Select Calculate key signature to display the accidental count and written order.
  4. Check the relative key to find the major or minor scale that shares the same signature.

Key signature FAQ

What is the order of sharps in a key signature?

Sharps appear in the order F, C, G, D, A, E, B. Each sharper key adds the next note in that fixed sequence.

What is the order of flats in a key signature?

Flats appear in the order B, E, A, D, G, C, F. The sequence stays fixed whether the signature contains one flat or all seven.

Do relative major and minor keys have the same signature?

Yes, every major key shares its signature with a relative minor key. Their tonal centers differ even though their basic pitch collections match.

Why are raised minor-scale notes not shown?

A key signature represents the natural minor collection. Raised sixth or seventh degrees used in harmonic and melodic minor are written as accidentals beside individual notes.

Are F sharp major and G flat major the same key?

They are enharmonically equivalent in equal temperament, so they sound at the same pitches. Their notation differs: F sharp major has six sharps, while G flat major has six flats.