au-compliance-kit

v0.4.0
io.github.aftertaxau/au-compliance-kit Checked 1 day ago Published 20 days ago

Australian take-home pay, PAYG withholding, income tax, HELP, super and GST from the ATO's formulas

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

take_home_pay Australian take-home pay

Take-home pay in Australia for a salary or hourly rate, for 2025-26 or 2026-27. Returns gross pay, PAYG tax withheld, net pay and the employer's 12% super for each week, fortnight and month and for the year, plus a basic estimate of the year's tax and refund that assumes no other income and uses the $1,000 standard deduction for work expenses (from 2026-27). Use it for questions like 'how much do I take home on $85,000'. For one specific pay with declaration details use payg_withholding; for a tax return estimate with deductions, other income, family or seniors offsets use annual_tax_estimate;…

ParameterTypeDescription
foreignResidentbooleanForeign resident for tax purposes. Default false.
hourlyRatenumberHourly rate in AUD excluding super, including any casual loading, e.g. 35.5.
hoursPerWeeknumberHours a week for hourlyRate. Default 38 (full time).
salarynumberAnnual salary in AUD, excluding super unless salaryIncludesSuper is true, e.g. 85000. Give salary or hourlyRate, not both.
salaryIncludesSuperbooleanThe salary is a total package that includes the 12% super guarantee. Default false.
studyLoanbooleanHas a HELP, VSL, SSL or other study and training support loan. Default false.
taxFreeThresholdbooleanTax-free threshold claimed with this employer. Default true (main job). Use false for a second job.
taxYearstringAustralian financial year (1 July to 30 June) whose withholding tables to use. Default 2026-27.
tfnProvidedbooleanEmployee gave their tax file number. Default true. False applies the no-TFN rate.

salary_for_take_home Salary needed for a target take-home pay

Works backwards from the take-home pay someone wants to the gross annual salary they need in Australia, for 2025-26 or 2026-27. Give the target take-home per week, fortnight, month or year; returns the salary needed (excluding super), the take-home and tax withheld for each pay period, and the employer's super on top. Use it for salary negotiations and questions like 'what do I need to earn to take home $1,500 a week'. It uses the same ATO withholding formulas as take_home_pay. AUD. Read-only and deterministic.

ParameterTypeDescription
per *stringThe period takeHome is for.
takeHome *numberTake-home pay wanted, in AUD, for the period in 'per', e.g. 1500.
foreignResidentbooleanForeign resident for tax purposes. Default false.
studyLoanbooleanHas a HELP, VSL, SSL or other study and training support loan. Default false.
taxFreeThresholdbooleanTax-free threshold claimed with this employer. Default true (main job). Use false for a second job.
taxYearstringAustralian financial year (1 July to 30 June) whose withholding tables to use. Default 2026-27.

payg_withholding PAYG withholding for one pay

Exact PAYG tax an Australian employer must withhold from one pay (weekly, fortnightly, monthly or quarterly) under ATO Schedule 1 (NAT 1004), with Schedule 8 for study loans and Schedule 9 for seniors, for 2025-26 or 2026-27. Use it in payroll code or when declaration details matter: tax-free threshold, TFN, residency, HELP, Medicare levy exemption or family variation, tax offsets. Returns whole dollars to withhold, take-home for the pay, the tax scale and a breakdown. For a whole-salary summary use take_home_pay; for a bonus or commission use bonus_withholding. Working holiday makers aren't s…

ParameterTypeDescription
earnings *numberGross earnings for this pay period in AUD, including taxable allowances and overtime, e.g. 3076.92 for a fortnight.
period *stringPay period.
annualTaxOffsetnumberTotal annual tax offsets claimed on the withholding declaration (AUD).
foreignResidentbooleanForeign resident for tax purposes. Default false.
medicareExemptionstringMedicare levy exemption claimed. Default none.
medicareFamilyobjectMedicare levy variation declaration (lower withholding for low-income families).
payDatestringPay date (YYYY-MM-DD). Picks the financial year's tables; overrides taxYear.
seniorsstringClaims the seniors and pensioners tax offset with this status (uses Schedule 9).
studyLoanbooleanHas a HELP, VSL, SSL or other study and training support loan. Default false.
taxFreeThresholdbooleanTax-free threshold claimed with this employer. Default true (main job). Use false for a second job.
taxYearstringAustralian financial year (1 July to 30 June) whose withholding tables to use. Default 2026-27.
tfnProvidedbooleanEmployee gave their tax file number. Default true. False applies the no-TFN rate.

bonus_withholding Tax withheld from a bonus

PAYG tax to withhold from a bonus, commission or other one-off payment made with a regular Australian pay, using ATO Schedule 5 Method A, for 2025-26 or 2026-27. Use it for 'how much tax comes out of my bonus'. Returns the tax on the bonus only, never more than 47% of it; work out the regular pay's withholding separately with payg_withholding. Amounts in AUD. Read-only and deterministic.

ParameterTypeDescription
bonus *numberThe bonus or commission amount (AUD).
earnings *numberRegular gross earnings for the pay period the bonus is paid with (AUD), excluding the bonus.
period *stringPay period.
foreignResidentbooleanForeign resident for tax purposes. Default false.
payDatestringPay date (YYYY-MM-DD).
periodsCoveredintegerPay periods the bonus relates to, if less than a year.
studyLoanbooleanHas a HELP, VSL, SSL or other study and training support loan. Default false.
taxFreeThresholdbooleanTax-free threshold claimed with this employer. Default true (main job). Use false for a second job.
taxYearstringAustralian financial year (1 July to 30 June) whose withholding tables to use. Default 2026-27.
tfnProvidedbooleanEmployee gave their tax file number. Default true. False applies the no-TFN rate.

annual_tax_estimate Australian income tax and refund estimate

Australian income tax for a whole financial year and the likely refund or bill: tax at resident or foreign rates, low income tax offset, seniors and pensioners tax offset, Medicare levy with low-income and family reductions, Medicare levy surcharge and compulsory HELP/study loan repayments, compared with the tax withheld. Applies the $1,000 standard deduction for work-related expenses from 2026-27 and the working Australians tax offset (up to $250) from 2027-28. Use it for tax return estimates and questions involving deductions, other income, overtime, bonuses, couples and families, seniors or…

ParameterTypeDescription
salary *numberSalary or wages for the year from one employer (AUD), excluding super, overtime and bonuses.
bonusnumberBonuses paid in the year (AUD).
deductionsnumberWork-related expenses the person would itemise (AUD). From 2026-27 residents with work income get at least the $1,000 standard deduction, so amounts up to $1,000 don't change the result.
familyobjectSpouse and dependent children, for the Medicare levy family reduction and surcharge thresholds.
foreignResidentbooleanForeign resident for tax purposes. Default false.
otherDeductionsnumberDeductions not covered by the standard deduction, such as gifts to charity and tax agent fees (AUD).
otherIncomenumberOther taxable income with no tax withheld, e.g. interest (AUD).
overtimenumberOvertime earnings for the year (AUD).
payFrequencystringHow often the salary is paid, for tax withheld. Default fortnightly.
privateHospitalCoverbooleanHas private patient hospital cover all year. Default true (no Medicare levy surcharge).
salaryIncludesSuperbooleansalary is a package including the 12% super guarantee.
saptostringEligible for the seniors and pensioners tax offset, with this status.
studyLoanbooleanHas a HELP, VSL, SSL or other study and training support loan. Default false.
taxFreeThresholdbooleanTax-free threshold claimed with this employer. Default true (main job). Use false for a second job.
taxYearstringFinancial year. Default 2026-27.
tfnProvidedbooleanEmployee gave their tax file number. Default true. False applies the no-TFN rate.

super_guarantee Super guarantee

Australian superannuation guarantee (12%) an employer must pay on ordinary time earnings, or the split of a total package that includes super into base salary and super (package divided by 1.12). Use it for 'how much super is paid on $X' or 'what is the base salary in a $X package'. Returns AUD amounts. Doesn't apply the maximum super contribution base. Read-only and deterministic.

ParameterTypeDescription
amount *numberEarnings (AUD), or the total package if includesSuper is true.
includesSuperbooleanamount is a package that includes super. Default false.

identifier_validation ABN, ACN, TFN, BSB or account number validation

Checks an Australian Business Number (ABN), Australian Company Number (ACN) or tax file number (TFN) with the official check-digit algorithms, or the format of a BSB or bank account number. Returns valid true or false, with the normalised form or the reason it fails. Use it before storing or submitting an identifier. It confirms the number is well formed, not that it is registered or belongs to anyone: use the ABR's ABN Lookup for registration. Runs locally; nothing is sent anywhere.

ParameterTypeDescription
type *stringWhich identifier: abn, acn, tfn, bsb or bank_account.
value *stringThe number, with or without spaces or dashes, e.g. "51 824 753 556".

tax_rates Australian tax rates and thresholds

Official Australian individual tax rates and thresholds for 2025-26, 2026-27 or 2027-28: resident and foreign resident brackets, low income tax offset, Medicare levy and surcharge thresholds, HELP repayment thresholds, seniors offset and the 12% super guarantee. Use it to quote or check rates, for example the 15% rate from 1 July 2026 and 14% from 1 July 2027. To calculate tax on an amount, use take_home_pay, payg_withholding or annual_tax_estimate rather than applying the brackets by hand. Read-only.

ParameterTypeDescription
taxYearstringFinancial year. Default 2026-27.

gst_calculation GST calculation

Adds 10% Australian GST to a price, or works out the GST included in a GST-inclusive price (the price divided by 11). Returns the price excluding GST, the GST and the price including GST, rounded to the cent. Use it for invoices, quotes and receipts. It doesn't decide whether an item is GST-free or input-taxed. AUD. Read-only and deterministic.

ParameterTypeDescription
amount *numberThe price in AUD, e.g. 110.
includesGstbooleantrue if amount already includes GST (to take it out). Default false (GST is added).