Skip to content

A SwiftUI app to calculate US Income Taxes for macOS and iOS. (Federal, CA/NY supported). Updated for 2023.

Notifications You must be signed in to change notification settings

calimarkus/USTaxCalculator

Repository files navigation

USTaxCalculator

Supporting years '20-'23, Federal + CA + NY + NYC

A small universal macOS & iOS app (written using Swift & SwiftUI) to calculate US Taxes (federal & state & local level). You can input income & tax data and then see the resulting taxes and how those were calculated. Compile and run the app locally to use it. You can enter new data or edit and play with the example data found in /Examples/. All example numbers and names are fully fictional. The macOS app is document-based, whereas the iOS one currently is purely memory based (no persistence).

Viewing Calculated Taxes (macOS) Data Entry (macOS)
Viewing Calculated Taxes (iOS) Details Data Entry (iOS)

Why?

This started as a small swift script to doublecheck some numbers of my taxes. But I kept tinkering with it to explore Swift & SwiftUI more. By now it became a universal macOS/iOS app with a UI to both consume & enter/modify tax data.

Disclaimers ⚠️

This is purely a fun side project, which helped me doublecheck a few calculations.

  • This is not tax advice.
  • I'm not a CPA, nor a tax consultant.
  • Don't blindly trust these numbers.
  • This code might miss many details & might contain mistakes.

The code has code comments with links to the sources of all tax rates etc.

Supported Tax Scenarios

Tax Years

  • 2020 through 2023

Filing Modes

  • Single
  • Married jointly

Missing: Married Separately & Head of Household. Married Separately often has the same rates as single though.

Supported Locations

  • Federal Taxes
  • State Taxes: CA, NY
  • Local Taxes: NYC

Adding new scenarios

New scenarios can easily be added:

  1. Add new cases to the TaxYear/FilingType/TaxState/TaxCity enums.
  2. Add new taxrates to USTaxCalculator/RawTaxRates/*.swift.

About

A SwiftUI app to calculate US Income Taxes for macOS and iOS. (Federal, CA/NY supported). Updated for 2023.

Topics

Resources

Stars

Watchers

Forks

Languages