Repolode
microsoft

microsoft/calculator

The open-source source code of the Windows Calculator app, a C# and C++ UWP app that ships with Windows 11.

Open-source alternative to:Windows Calculator

Stars
31,084
Forks
5,838
Open issues
481
Last commit
15 days ago

What is it?

This repository holds the source code for the Windows Calculator app, a modern Windows application written in C++ and C# that comes pre-installed with Windows. It covers standard, scientific and programmer calculator modes, plus converters for units of measurement and currencies.

The standard mode evaluates each command as it is entered, while the scientific mode follows order of operations. The programmer mode supports conversion between number bases, and a date calculator computes differences between dates or adds and subtracts years, months and days. Basic arithmetic uses infinite precision so results do not lose accuracy.

The project targets Windows 11 and is built with Visual Studio using the Universal Windows Platform workload. The graphing mode UI is included, but its proprietary engine is not, so developer builds use a mock implementation, and currency data in developer builds is mock data.

Key features

  • 01Standard, scientific and programmer calculator modes
  • 02Date difference and date add/subtract calculations
  • 03Conversion between many units of measurement
  • 04Currency conversion using data from Bing in retail builds
  • 05Calculation history and memory functions
  • 06Infinite precision for basic arithmetic

Use cases

  • Studying how a production Windows UWP app is structured in C# and C++
  • Building or customizing a Windows calculator app from this codebase
  • Contributing UI or bug fixes to the Windows Calculator project

Quick start

  1. 1

    Install Visual Studio with the Universal Windows Platform Development workload

  2. 2

    Clone the repository

    git clone https://github.com/Microsoft/calculator.git
  3. 3

    Open src\Calculator.slnx in Visual Studio and run the app

Things to know

  • Requires Windows 11 build 22000 or newer and Visual Studio to build and run.
  • Graphing mode uses a mock engine in developer builds, so graphing does not work.
  • Currency converter uses mock data in developer builds and the real data is not licensed for reuse.

In collections

Topics

FAQ

What is calculator?
The open-source source code of the Windows Calculator app, a C# and C++ UWP app that ships with Windows 11. This repository holds the source code for the Windows Calculator app, a modern Windows application written in C++ and C# that comes pre-installed with Windows. It covers standard, scientific and programmer calculator modes, plus converters for units of measurement and currencies.
Is calculator free to use? What license does it have?
calculator is open source under the MIT license. Check the license terms before using it in commercial products.
Is calculator still maintained?
Actively maintained. The last commit to calculator was on Oct 23, 2026.
What can I use calculator for?
Studying how a production Windows UWP app is structured in C# and C++ Building or customizing a Windows calculator app from this codebase Contributing UI or bug fixes to the Windows Calculator project
How do I install calculator?
Install Visual Studio with the Universal Windows Platform Development workload Clone the repository: git clone https://github.com/Microsoft/calculator.git Open src\Calculator.slnx in Visual Studio and run the app
Where can I get calculator?
The source code and installation instructions are on GitHub: https://github.com/microsoft/calculator

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects