Free Key Signature Calculator

Choose a mode and adjust the inputs

One Tool, Two Functions

This free online key signature calculator acts as both a music key finder and a key signature finder. When you already know how many sharps or flats appear in the signature, the music key finder instantly shows which major and minor key correspond to that accidental count. Conversely, if you need to write or transpose into a specific key, the key signature finder lists the exact sharps or flats required. Combining these two capabilities makes this sharps and flats calculator a practical reference for composers, students, and performers who need a free key signature calculator online.

The Role of a Key Signature

A key signature is a set of sharp (♯) or flat (♭) symbols placed at the beginning of every staff line, immediately after the clef. It tells the performer which notes are consistently raised or lowered throughout the piece, thereby defining the tonal center. For example, a signature containing one sharp (F♯) suggests the piece is built around G major or its relative minor, E minor. Understanding key signatures is essential for reading music, transposing, and analyzing harmonic structure—this is where a major minor key identifier like the present tool becomes valuable.

The 15 Standard Key Signatures

There are 15 commonly used key signatures: seven with sharps, seven with flats, and one with no accidentals. Each signature corresponds to one major key and its relative minor (the minor key that shares the same set of notes). Below are the complete lists.

Key Signatures with Sharps

Number of SharpsSharp NotesMajor KeyMinor Key
0(none)C majorA minor
1F♯G majorE minor
2F♯, C♯D majorB minor
3F♯, C♯, G♯A majorF♯ minor
4F♯, C♯, G♯, D♯E majorC♯ minor
5F♯, C♯, G♯, D♯, A♯B majorG♯ minor
6F♯, C♯, G♯, D♯, A♯, E♯F♯ majorD♯ minor
7F♯, C♯, G♯, D♯, A♯, E♯, B♯C♯ majorA♯ minor

Key Signatures with Flats

Number of FlatsFlat NotesMajor KeyMinor Key
0(none)C majorA minor
1B♭F majorD minor
2B♭, E♭B♭ majorG minor
3B♭, E♭, A♭E♭ majorC minor
4B♭, E♭, A♭, D♭A♭ majorF minor
5B♭, E♭, A♭, D♭, G♭D♭ majorB♭ minor
6B♭, E♭, A♭, D♭, G♭, C♭G♭ majorE♭ minor
7B♭, E♭, A♭, D♭, G♭, C♭, F♭C♭ majorA♭ minor

A relative minor key can be found by lowering the tonic of the major key by a minor third (three half‑steps). For instance, C major’s relative minor is A minor because A is three half‑steps below C, and both keys use the same set of notes (C, D, E, F, G, A, B).

Identifying Keys from Signatures

You can determine the key of a piece by examining its key signature using these practical rules:

  • For sharp keys: Look at the last sharp (the rightmost sharp symbol). The tonic of the major key is a half‑step above that sharp. Example: one sharp on F♯ → tonic G → G major.
  • For flat keys: The second‑to‑last flat (the penultimate flat) is the major tonic. Example: three flats (B♭, E♭, A♭) → penultimate is E♭ → E♭ major. If there is only one flat, the major key is F major.
  • Major vs. minor: The same signature can represent either a major key or its relative minor. To decide which, look at the final note or chord of the piece—the tonic note will almost always be the starting or ending pitch. The calculator automatically shows both possibilities.

The Circle of Fifths and Mnemonics

The circle of fifths is a visual diagram that organizes key signatures by perfect‑fifth intervals. Starting from C (no accidentals), moving clockwise adds one sharp at each step, while moving counter‑clockwise adds one flat. The outer ring shows major keys; the inner ring shows their relative minors.

To remember the order of sharps, use the mnemonic:

Father Charles Goes Down And Ends Battle
(F, C, G, D, A, E, B)

For the order of flats, simply reverse the same phrase:

Battle Ends And Down Goes Charles’ Father
(B, E, A, D, G, C, F)

These sequences also appear in the signature from left to right: sharps are always added in the order just listed, and flats in the reversed order.

Worked Examples

Example 1: D major key signature
Starting from C (no sharps), move clockwise on the circle of fifths: G (1 sharp), D (2 sharps). Thus D major has two sharps, which are the first two of the sharp sequence: F♯ and C♯. The scale is D, E, F♯, G, A, B, C♯.

Example 2: Three‑sharp key
Take the first three words of the sharp mnemonic: Father, Charles, Goes → F, C, G. The last letter is G; a half‑step above G gives A. Therefore the key with three sharps is A major (and its relative minor, F♯ minor). The three sharps are F♯, C♯, G♯.

Example 3: Six‑flat key
Follow the flat mnemonic for six flats: Battle, Ends, And, Down, Goes, Charles → B, E, A, D, G, C. The penultimate note is G, so the signature corresponds to G♭ major. (The flats are B♭, E♭, A♭, D♭, G♭, C♭.)

Example 4: B minor
Find the relative minor of D major (two sharps). Lower D by a minor third: D → C♯ → B, so B minor shares the same two sharps (F♯ and C♯) as D major.

Using the Key Signature Calculator

The free online key signature calculator offers two modes:

  1. Music Key Finder – Select whether you know the number of sharps or flats, then enter the count (0–7). The tool immediately displays the corresponding major key and its relative minor.
  2. Key Signature Finder – Choose “Major” or “Minor” first, then pick the root note from the dropdown list. The calculator tells you how many accidentals the key has and lists their names (e.g., “2 sharps – F♯, C♯”).

The tool covers the 15 standard key signatures. It does not include theoretical keys (those that would require double sharps or double flats) because such keys are rarely encountered in practical music. Simply enter your known information, and the result appears instantly—no manual memorization needed.

FAQ

1. How do I find the major key from a key signature with sharps?

Look at the last sharp (the rightmost sharp symbol). The tonic of the major key is a half step above that sharp. For example, one sharp (F♯) gives G major; two sharps (F♯, C♯) give D major.

2. What is the circle of fifths and how does it help remember key signatures?

The circle of fifths arranges keys in order of perfect fifths. Starting from C (no accidentals), moving clockwise adds one sharp per step, moving counter‑clockwise adds one flat. It visually shows the relationship between keys and their relative minors, and helps you recall the number of sharps or flats for any key.

3. Can the calculator differentiate between major and minor keys?

Yes. In the music key finder mode, it outputs both the major key and the relative minor for a given accidental count. In the key signature finder mode, you first choose whether you want a major or minor key, then select the root; the calculator then lists the required sharps or flats.

4. What does it mean when a key signature has no flats or sharps?

A key signature with no accidentals means the piece is in C major (if the tonal center is C) or A minor (if the tonal center is A). Both keys use only the natural notes without any sharps or flats.

5. How do I use the key signature calculator to find the accidentals for a specific key?

Choose the key signature finder mode, then select the quality (major or minor) and the root note from the dropdown. The calculator will display the number of sharps or flats for that key and list their names (e.g., '3 flats – B♭, E♭, A♭').

How to Use

  1. Choose between Key Finder (find the key from sharps or flats) or Key Signature Finder (find the accidentals for a given key).
  2. Adjust the inputs - select the number of sharps or flats, or pick a root note and quality.
  3. The corresponding major key, minor key, and accidental notes are displayed instantly.