Tax Expense Surprise
Calculate the tax expense surprise of Thomas and Zhang (2011): the change in a company’s income tax expense against the same period a year earlier, scaled by its total assets then.
A rising tax expense signals a rise in the taxable income, which is harder to manage than the book income. Thomas and Zhang find that the tax expense surprise predicts higher returns, also after controlling for the earnings surprise.
The formula is as follows:
\[\text{Tax Expense Surprise} = \frac{\text{Income Tax Expense} - \text{Income Tax Expense}_{t-1}}{\text{Total Assets}_{t-1}}\]Income Tax Expense(t-1) and Total Assets(t-1) are those of a year earlier. Thomas and Zhang use quarterly data, comparing a quarter with the same quarter a year earlier; with annual data the years are compared. Total assets of zero or less give NaN.
- Thomas, J. and F. X. Zhang (2011). “Tax Expense Momentum.” Journal of Accounting Research, 49(3), 791-821.
Also known as: tax expense momentum, ChTax, Tes.
Example · AAPL, MSFT, KO, XOM · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_tax_expense_surprise:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "KO", "XOM"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_tax_expense_surprise()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How much did the income tax expense of Apple, Microsoft, Coca-Cola and ExxonMobil change against a year earlier, relative to total assets, from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 0.0150 | 0.0136 | -0.0073 | 0.0369 | -0.0247 |
| KO | 0.0073 | -0.0054 | 0.0014 | 0.0019 | 0.0042 |
| MSFT | 0.0036 | 0.0034 | 0.0164 | 0.0066 | 0.0042 |
| XOM | 0.0399 | 0.0370 | -0.0129 | -0.0043 | -0.0051 |
4 rows
Parameters
get_tax_expense_surprise accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the ratios. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
compound | bool | Whether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False. | False |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Thomas, J. and F. X. Zhang (2011). “Tax Expense Momentum.” Journal of Accounting Research, 49(3), 791-821.