Key Signature Calculator

Find the key signature of a major or minor key. Enter a number of sharps or flats to find the matching major and relative minor keys.

Result
—

How to calculate

Use the circle of fifths to place the key. Sharps and flats follow a fixed order. A major key and its relative minor share the same signature.

Worked example

Use Find Sharps or flats in a key · Key tonic D · Key quality Major. The result is 2 sharps.

Input and result notes

Covers conventional signatures of zero to seven sharps or flats. Minor-key signatures correspond to natural minor. Raised scale degrees in harmonic minor are written as accidentals.

University of Puget Sound music theory text

Related calculators