Japanese Consumption Tax Calculator
consumption_taxRead-onlyIdempotent
Calculate Japanese consumption tax with exact integer arithmetic: tax-excluded to tax-included or tax-included to tax-excluded, at 10% (standard), 8% (reduced) or any rate from 0 to 100 with up to 2 decimals, rounding down (floor, default), half up (round) or up (ceil). Returns the tax amount, both prices and the formula. Amounts are whole yen up to 13 digits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Tax rate in percent. Default 10. 8 for the reduced rate (food, newspapers). | |
| amount | Yes | Amount in yen (whole number, up to 13 digits). | |
| rounding | No | How to round fractions of a yen in the tax. Default "floor" (most common in Japan). | |
| amount_type | No | Is amount tax-excluded (default; adds tax) or tax-included (extracts tax)? |