Key Signature Calculator

Find the major key from the number of sharps or flats.

Major key D major
Relative minor B minor

Formula: Circle of fifths lookup

Step-by-step with your numbers:
1. Values used:
2. Number of accidentals = 2
3.
4. Major key = D major
5. Relative minor = B minor
Did we solve your problem today?

The number of sharps or flats identifies the key via the circle of fifths.

The math behind it

Each step around the circle of fifths adds one sharp (clockwise) or flat (counter-clockwise).

Worked example

2 sharps is D major (B minor).

FAQ

What is a relative minor?

The minor key that shares the same key signature, a minor third below the major.