Skip to main content

Tax rates

You can start with a walkthrough instead of reading this document first. A walkthrough is the practical extension of the concepts in this document. It puts them into practice through one example with concrete values. Each part of the walkthrough explains the concepts that its steps apply and links to the sections that cover them.

Tax rates: what the Zenskar tax engine applies

A tax rate is the percentage of tax that the Zenskar tax engine applies to one tax category in one jurisdiction. Each business entity defines its own tax rates. The percentage of a tax rate can change over time, through its rate changes. With the Zenskar tax engine, you maintain every tax rate. Zenskar applies only the tax rates that you add. A third-party tax engine uses its own rates and rules instead. A tax rate takes effect only in a served country that uses the Zenskar tax engine. The following example shows how one business entity taxes the tax category SaaS subscription in three served countries. The business entity uses the Zenskar tax engine in Australia and India, and Avalara AvaTax in the United States: With the Zenskar tax engine, the same tax category can have its own tax rate in each jurisdiction. In the United States, the business entity needs no tax rate for SaaS subscription, because Avalara AvaTax decides the percentage.

Jurisdictions: where a tax rate applies

A jurisdiction is the geographic area that a tax rate covers. A jurisdiction is a country, and optionally a state, a city, and a ZIP-code range within it. A city needs a state. A ZIP-code range can have a state and a city, but does not need them. The level of a jurisdiction is its most specific part: country, state, city, or ZIP code. For example, the jurisdiction US, CA, San Francisco is at the city level.

How Zenskar matches a jurisdiction

When Zenskar activates or bills a contract, it matches the tax rates of the business entity against the default billing address of the customer. Zenskar starts at the most specific level of the address, and moves up one level at a time until a tax rate matches: On each date, Zenskar uses the first level that matches, and ignores the levels above it. Zenskar does not add the tax rates of different levels together. The percentage of a more specific tax rate is therefore the total of its own tax and the taxes of the levels above it. A tax rate covers only the dates of its rate changes. On a date that the matching tax rate does not cover, Zenskar moves up to the next level. See Example: tax rates at two levels over time. A ZIP-code range matches only ZIP codes with the same number of characters. For an address in the United States, Zenskar also tries the first five digits of a ZIP+4 code. For example, 94105-1234 matches the range 94105 to 94107. Zenskar compares the state and the city as text, without regard to capitals. A state name does not match a state code. For example, California does not match CA.
A tax rate whose state or city is written differently from the address does not match. An address without a ZIP code, a city, or a state matches only the levels that it has. In both cases, Zenskar uses a less specific tax rate, when one matches, without a message. Write the state and the city of each tax rate as the addresses of your customers write them. Fill in every part of the default billing address of each customer.
At each level, at most one tax rate of a tax category matches an address on a given date. For example, two tax rates whose ZIP-code ranges both contain 94105 cannot share a date.

Example: which tax rate applies to each address

A business entity serves the United States with the Zenskar tax engine. It has the following tax rates for one tax category, and no country-level tax rate: Tax rate 3 replaces tax rates 1 and 2 for the ZIP codes that it contains.

Rate changes: tax rates over time

A rate change is one dated period of a tax rate, with its own tax components, that applies from its start date until its end date, or with no end date. A tax rate has one or more rate changes. The rate changes of a tax rate cannot overlap or share a day, so at most one of them is in effect on each date. A rate change with no end date covers every later date, so a later rate change would overlap it.

Rate changes in billing

For each billing period of a contract, Zenskar uses the rate change in effect on one date of the billing period. The date depends on the payment timing of the line item: Zenskar does not split a billing period across two rate changes. A new rate change therefore applies from the first billing period whose date falls on or after its start date. For the tax category of each product of a contract, every date of the contract needs a rate change of a matching tax rate. Without one, you cannot activate the contract. Zenskar keeps every rate change after its end date. An invoice for a past billing period, such as the first invoice of a contract that starts in the past, uses the rate change that was in effect then.

Example: one tax rate over three years

A business entity has a tax rate for the tax category SaaS subscription in one jurisdiction. The tax rate has three rate changes: Each rate change ends on the day before the next one starts, so no two rate changes share a day. On March 1, 2027, rate change 2 is in effect, rate change 1 has ended, and rate change 3 has not started. The following monthly billing periods show which rate change Zenskar uses for each: The last row uses rate change 1, which ended in 2025. A quarterly billing period from June 1 to August 31, 2027 includes July 1, 2027, when rate change 3 starts. The following table shows which rate change Zenskar uses for that billing period: Zenskar applies one rate change to the whole billing period, even though rate change 3 starts within it.

Example: tax rates at two levels over time

A business entity has two tax rates for the tax category SaaS subscription: A customer in San Francisco has a contract that starts on July 1, 2026, with monthly prepaid billing periods. For each billing period, Zenskar uses the first day: Tax rate 2 matches the address from the start of the contract, but it has no rate change before January 1, 2027. Until then, Zenskar moves up to tax rate 1. From January 1, 2027, tax rate 2 replaces tax rate 1.

Tax components: the parts of a rate change

A tax component is one named tax within a rate change, with its own percentage. A rate change has one or more tax components. Each tax component has a name, such as GST, that is unique within its rate change. The Zenskar tax engine adds the tax components of a rate change together. It applies no tax other than those tax components. Each tax component applies to the amount before tax. For example, a rate change with CGST at 9% and SGST at 9% applies 18%. Tax components let one tax rate hold every tax that applies in its jurisdiction. In the example of matching jurisdictions, each tax of a tax rate is a tax component. For example, tax rate 3 has three tax components: a state tax, a city tax, and a ZIP-code tax.