Home · Everyday · Tech, Text & Media · Key Signature Calculator
Key Signature Calculator
The key signature of any major key — how many sharps or flats, which ones, and the relative minor.
What this calculator does
The key signature of any major key — how many sharps or flats, which ones, and the relative minor. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Note names use scientific pitch notation (middle C = C4) and equal temperament with A4 = 440 Hz.
A semitone multiplies frequency by 2^(1/12) ≈ 1.0595.
Chord spellings use sharps; enharmonic equivalents (D♯ = E♭) sound identical in equal temperament.
Worked example
With the example inputs this page opens with, the result is 1 sharp: F♯ — key signature of g major. Key signatures follow the circle of fifths: each step up a fifth adds one sharp, in the fixed order F♯ C♯ G♯ D♯ A♯ E♯ B♯. The headline figure is the count of accidentals.
Quick reference
| Figure | Value |
|---|---|
| Key signature of G major | 1 sharp: F♯ |
| Relative minor | E minor |
| Accidentals | 1 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Key Signature Calculator work?
The key signature of any major key — how many sharps or flats, which ones, and the relative minor. Key → Sharps or flats. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Key Signature Calculator need?
Key → Sharps or flats. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Key Signature Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.