setsuzei: Japanese tax estimate engine
v0.6.1Japanese income/resident tax calculator: furusato nozei, iDeCo, tax return boxes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
estimate_tax_savings Estimate Japanese income/resident tax and year-end savings
Estimate a freelancer's or side-job worker's Japanese income tax (tax year 2026 / Reiwa 8) and resident tax, and how much each year-end measure would still reduce them: furusato nozei (hometown tax donation) limit, iDeCo, Small Business Mutual Aid (小規模企業共済), and the blue-return special deduction (青色申告特別控除). Returns the current tax, each measure's limit / remaining room / tax reduction, and a combined plan with the extra payment and the reduction recomputed together. It also handles the medical expense deduction (compared with the self-medication tax system) and th…
| Parameter | Type | Description |
|---|---|---|
blueReturn | string | Blue-return special deduction (青色申告特別控除) the user expects this year: 'none' = white return (default), '10' / '55' / '65' = 100,000 / 550,000 / 650,000 yen. Only applies to business inc… |
businessExpenses | integer | Necessary expenses of that business (必要経費) (JPY, whole yen) |
businessIncomeType | string | How the business revenue is taxed: 'business' = business income (事業所得, default), 'misc' = miscellaneous income (雑所得; no blue-return deduction, losses cannot offset other income). Ask the… |
businessRevenue | integer | Revenue of the freelance business or side job (売上), before expenses (JPY, whole yen) |
dependentUnder23 | boolean | Has a dependent under 23 (including children under 16). For tax year 2026 this raises the income-tax deduction for new-contract life insurance to up to 60,000 yen, and it also makes a salary over 8,50… |
dependents | object | Number of dependents by age on December 31. |
furusatoPaid | integer | Furusato nozei (hometown tax donations) already made this year (JPY, whole yen) |
idecoAdditional | integer | Extra iDeCo contribution the user has confirmed is possible within this year. Only when given is iDeCo included in the combined plan (JPY, whole yen) |
idecoAnnualLimit | integer | Annual iDeCo contribution limit for this person. If omitted it is assumed from the employment type (JPY, whole yen) |
idecoPaid | integer | iDeCo contributions this year, already made or fixed (JPY, whole yen) |
incomeAdjustment | boolean | Eligible for the income adjustment deduction (所得金額調整控除): salary over 8,500,000 yen and a dependent under 23 or a person with a special disability. Set automatically when under16 or spe… |
kyosaiAdditional | integer | Extra mutual-aid premium to pay this year. Defaults to the remaining room up to the annual limit (JPY, whole yen) |
kyosaiPaid | integer | Small Business Mutual Aid (小規模企業共済) premiums this year, already paid or fixed (JPY, whole yen) |
lifeInsuranceNew | integer | General life insurance premiums under contracts from 2012 on (新生命保険料), from the insurer's certificate (JPY, whole yen) |
lifeInsuranceOld | integer | General life insurance premiums under contracts up to 2011 (旧生命保険料, including old medical policies) (JPY, whole yen) |
medicalCareInsurance | integer | Medical and long-term care insurance premiums (介護医療保険料) (JPY, whole yen) |
medicalExpenses | integer | Medical expenses paid this year for the user and family members in the same household (医療費). Used for the medical expense deduction; the engine compares it with the self-medication system and us… |
medicalReimbursed | integer | Part of medicalExpenses reimbursed by insurance, high-cost medical care benefit, childbirth lump-sum, etc. (補てんされる金額). Cap each payout at the expense it covers before adding them up: a… |
nhiIncomeRatePercent | number | Income-based rate of the municipality's national health insurance premium, in percent (e.g. 11.5). Only used to estimate how the blue-return level changes next year's premium |
otherDeductions | integer | Total of other income deductions for income tax (earthquake insurance, disability, etc.). Do not include medical expenses or life insurance premiums: use their own fields (JPY, whole yen) |
otherDeductionsResident | integer | The same total for resident tax. Defaults to otherDeductions (JPY, whole yen) |
pensionInsuranceNew | integer | Individual pension insurance premiums under contracts from 2012 on (新個人年金保険料) (JPY, whole yen) |
pensionInsuranceOld | integer | Individual pension insurance premiums under contracts up to 2011 (旧個人年金保険料) (JPY, whole yen) |
salaryRevenue | integer | Salary revenue before any deductions (gross annual pay; 源泉徴収票の「支払金額」) (JPY, whole yen) |
selfMedicationExpenses | integer | Spending on over-the-counter medicines eligible for the self-medication tax system (セルフメディケーション税制; marked on the receipt), net of reimbursements. Only for users who had a hea… |
socialInsurance | integer | Social insurance premiums paid this year (national health insurance, national pension, or the amounts withheld from salary) (JPY, whole yen) |
spouse | object | Spouse living in the same household. Omit if there is no spouse. |
year | integer | Tax year (calendar year). Only 2026 is supported. |
furusato_nozei_limit Furusato nozei (hometown tax donation) limit
Compute only the furusato nozei limit for tax year 2026: the annual donation amount at which the out-of-pocket cost stays at about 2,000 yen, the remaining room after donations already made, and the tax reduction for donating up to the limit. Use `estimate_tax_savings` instead when the user also asks about iDeCo, mutual aid or the blue-return deduction (contributions lower the limit). Amounts are annual, in whole Japanese yen. Pass the user's own projected figures; do not invent missing ones (omitted fields count as 0). The numbers come from a tested calculation engine whose rates and threshol…
| Parameter | Type | Description |
|---|---|---|
blueReturn | string | Blue-return special deduction (青色申告特別控除) the user expects this year: 'none' = white return (default), '10' / '55' / '65' = 100,000 / 550,000 / 650,000 yen. Only applies to business inc… |
businessExpenses | integer | Necessary expenses of that business (必要経費) (JPY, whole yen) |
businessIncomeType | string | How the business revenue is taxed: 'business' = business income (事業所得, default), 'misc' = miscellaneous income (雑所得; no blue-return deduction, losses cannot offset other income). Ask the… |
businessRevenue | integer | Revenue of the freelance business or side job (売上), before expenses (JPY, whole yen) |
dependentUnder23 | boolean | Has a dependent under 23 (including children under 16). For tax year 2026 this raises the income-tax deduction for new-contract life insurance to up to 60,000 yen, and it also makes a salary over 8,50… |
dependents | object | Number of dependents by age on December 31. |
furusatoPaid | integer | Furusato nozei (hometown tax donations) already made this year (JPY, whole yen) |
idecoAdditional | integer | Extra iDeCo contribution the user has confirmed is possible within this year. Only when given is iDeCo included in the combined plan (JPY, whole yen) |
idecoAnnualLimit | integer | Annual iDeCo contribution limit for this person. If omitted it is assumed from the employment type (JPY, whole yen) |
idecoPaid | integer | iDeCo contributions this year, already made or fixed (JPY, whole yen) |
incomeAdjustment | boolean | Eligible for the income adjustment deduction (所得金額調整控除): salary over 8,500,000 yen and a dependent under 23 or a person with a special disability. Set automatically when under16 or spe… |
kyosaiAdditional | integer | Extra mutual-aid premium to pay this year. Defaults to the remaining room up to the annual limit (JPY, whole yen) |
kyosaiPaid | integer | Small Business Mutual Aid (小規模企業共済) premiums this year, already paid or fixed (JPY, whole yen) |
lifeInsuranceNew | integer | General life insurance premiums under contracts from 2012 on (新生命保険料), from the insurer's certificate (JPY, whole yen) |
lifeInsuranceOld | integer | General life insurance premiums under contracts up to 2011 (旧生命保険料, including old medical policies) (JPY, whole yen) |
medicalCareInsurance | integer | Medical and long-term care insurance premiums (介護医療保険料) (JPY, whole yen) |
medicalExpenses | integer | Medical expenses paid this year for the user and family members in the same household (医療費). Used for the medical expense deduction; the engine compares it with the self-medication system and us… |
medicalReimbursed | integer | Part of medicalExpenses reimbursed by insurance, high-cost medical care benefit, childbirth lump-sum, etc. (補てんされる金額). Cap each payout at the expense it covers before adding them up: a… |
nhiIncomeRatePercent | number | Income-based rate of the municipality's national health insurance premium, in percent (e.g. 11.5). Only used to estimate how the blue-return level changes next year's premium |
otherDeductions | integer | Total of other income deductions for income tax (earthquake insurance, disability, etc.). Do not include medical expenses or life insurance premiums: use their own fields (JPY, whole yen) |
otherDeductionsResident | integer | The same total for resident tax. Defaults to otherDeductions (JPY, whole yen) |
pensionInsuranceNew | integer | Individual pension insurance premiums under contracts from 2012 on (新個人年金保険料) (JPY, whole yen) |
pensionInsuranceOld | integer | Individual pension insurance premiums under contracts up to 2011 (旧個人年金保険料) (JPY, whole yen) |
salaryRevenue | integer | Salary revenue before any deductions (gross annual pay; 源泉徴収票の「支払金額」) (JPY, whole yen) |
selfMedicationExpenses | integer | Spending on over-the-counter medicines eligible for the self-medication tax system (セルフメディケーション税制; marked on the receipt), net of reimbursements. Only for users who had a hea… |
socialInsurance | integer | Social insurance premiums paid this year (national health insurance, national pension, or the amounts withheld from salary) (JPY, whole yen) |
spouse | object | Spouse living in the same household. Omit if there is no spouse. |
year | integer | Tax year (calendar year). Only 2026 is supported. |
compare_furusato_limit_with_2025 Compare the furusato nozei limit: tax year 2025 vs 2026
Compare the furusato nozei limit for the same input between tax year 2025 (Reiwa 7) and 2026 (Reiwa 8), with the intermediate values and the reason for any change. The 2026 increase of the income-tax basic deduction lowers the limit for some income bands and leaves most unchanged. Only supports a spouse with zero income (the spouse income requirement differs between the two years). Amounts are annual, in whole Japanese yen. Pass the user's own projected figures; do not invent missing ones (omitted fields count as 0). The numbers come from a tested calculation engine whose rates and thresholds…
| Parameter | Type | Description |
|---|---|---|
blueReturn | string | Blue-return special deduction (青色申告特別控除) the user expects this year: 'none' = white return (default), '10' / '55' / '65' = 100,000 / 550,000 / 650,000 yen. Only applies to business inc… |
businessExpenses | integer | Necessary expenses of that business (必要経費) (JPY, whole yen) |
businessIncomeType | string | How the business revenue is taxed: 'business' = business income (事業所得, default), 'misc' = miscellaneous income (雑所得; no blue-return deduction, losses cannot offset other income). Ask the… |
businessRevenue | integer | Revenue of the freelance business or side job (売上), before expenses (JPY, whole yen) |
dependentUnder23 | boolean | Has a dependent under 23 (including children under 16). For tax year 2026 this raises the income-tax deduction for new-contract life insurance to up to 60,000 yen, and it also makes a salary over 8,50… |
dependents | object | Number of dependents by age on December 31. |
furusatoPaid | integer | Furusato nozei (hometown tax donations) already made this year (JPY, whole yen) |
idecoAdditional | integer | Extra iDeCo contribution the user has confirmed is possible within this year. Only when given is iDeCo included in the combined plan (JPY, whole yen) |
idecoAnnualLimit | integer | Annual iDeCo contribution limit for this person. If omitted it is assumed from the employment type (JPY, whole yen) |
idecoPaid | integer | iDeCo contributions this year, already made or fixed (JPY, whole yen) |
incomeAdjustment | boolean | Eligible for the income adjustment deduction (所得金額調整控除): salary over 8,500,000 yen and a dependent under 23 or a person with a special disability. Set automatically when under16 or spe… |
kyosaiAdditional | integer | Extra mutual-aid premium to pay this year. Defaults to the remaining room up to the annual limit (JPY, whole yen) |
kyosaiPaid | integer | Small Business Mutual Aid (小規模企業共済) premiums this year, already paid or fixed (JPY, whole yen) |
lifeInsuranceNew | integer | General life insurance premiums under contracts from 2012 on (新生命保険料), from the insurer's certificate (JPY, whole yen) |
lifeInsuranceOld | integer | General life insurance premiums under contracts up to 2011 (旧生命保険料, including old medical policies) (JPY, whole yen) |
medicalCareInsurance | integer | Medical and long-term care insurance premiums (介護医療保険料) (JPY, whole yen) |
medicalExpenses | integer | Medical expenses paid this year for the user and family members in the same household (医療費). Used for the medical expense deduction; the engine compares it with the self-medication system and us… |
medicalReimbursed | integer | Part of medicalExpenses reimbursed by insurance, high-cost medical care benefit, childbirth lump-sum, etc. (補てんされる金額). Cap each payout at the expense it covers before adding them up: a… |
nhiIncomeRatePercent | number | Income-based rate of the municipality's national health insurance premium, in percent (e.g. 11.5). Only used to estimate how the blue-return level changes next year's premium |
otherDeductions | integer | Total of other income deductions for income tax (earthquake insurance, disability, etc.). Do not include medical expenses or life insurance premiums: use their own fields (JPY, whole yen) |
otherDeductionsResident | integer | The same total for resident tax. Defaults to otherDeductions (JPY, whole yen) |
pensionInsuranceNew | integer | Individual pension insurance premiums under contracts from 2012 on (新個人年金保険料) (JPY, whole yen) |
pensionInsuranceOld | integer | Individual pension insurance premiums under contracts up to 2011 (旧個人年金保険料) (JPY, whole yen) |
salaryRevenue | integer | Salary revenue before any deductions (gross annual pay; 源泉徴収票の「支払金額」) (JPY, whole yen) |
selfMedicationExpenses | integer | Spending on over-the-counter medicines eligible for the self-medication tax system (セルフメディケーション税制; marked on the receipt), net of reimbursements. Only for users who had a hea… |
socialInsurance | integer | Social insurance premiums paid this year (national health insurance, national pension, or the amounts withheld from salary) (JPY, whole yen) |
spouse | object | Spouse living in the same household. Omit if there is no spouse. |
year | integer | Tax year (calendar year). Only 2026 is supported. |
validate_tax_input Validate an input without calculating
Check an input object for `estimate_tax_savings` without returning tax figures: unknown fields, non-integer or negative amounts, unsupported values. Returns `valid`, the list of problems (in Japanese, prefixed with the field name), and the normalized input with defaults filled in (it can be passed to the other tools as is). Amounts are annual, in whole Japanese yen. Pass the user's own projected figures; do not invent missing ones (omitted fields count as 0). The numbers come from a tested calculation engine whose rates and thresholds are cited from primary sources; do not recompute or adjust…
list_tax_sources List the primary sources behind the numbers
List the primary sources (National Tax Agency tax answers, ministry pages, statutes on e-Gov, scheme operators) that every rate, deduction and threshold in the engine was checked against, for tax year 2026. Use it to cite where a figure comes from. Runs locally and sends nothing over the network.
| Parameter | Type | Description |
|---|---|---|
year | integer | Tax year. Only 2026 is supported. |