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) |
---|---|---|
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.
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.
- 2020 through 2023
- Single
- Married jointly
Missing: Married Separately & Head of Household. Married Separately often has the same rates as single though.
- Federal Taxes
- State Taxes: CA, NY
- Local Taxes: NYC
New scenarios can easily be added:
- Add new cases to the
TaxYear
/FilingType
/TaxState
/TaxCity
enums. - Add new taxrates to
USTaxCalculator/RawTaxRates/*.swift
.