Changes in Key Signature with Addition of Sharps or Flats

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration shows how key signature changes as the number of sharps and flats in the treble clef is changed. Each major key has a corresponding minor key that begins four half-steps below. The green and red highlighted keys on the piano represent the corresponding major and minor keys of the key signature, respectively.


Toggle between sharp and flat and select the number added to the key signature to see how the key changes.


Contributed by: Maxine Sy Chu (April 2019)
Open content licensed under CC BY-NC-SA



This was a project for Advanced Topics in Mathematics II, 2018–2019, Torrey Pines High School, San Diego, CA.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.