Tax calculation is the final step in the TaxMaxi workflow. Once a source has a completed sync, you can request a structured tax summary for any supported year and jurisdiction. TaxMaxi applies FIFO (First In, First Out) accounting to determine cost basis and holding periods, then classifies each disposal and income event according to the rules of the requested jurisdiction. The result is a deterministic, machine-readable summary that covers capital gains, losses, and income totals.Documentation Index
Fetch the complete documentation index at: https://docs.taxmaxi.com/llms.txt
Use this file to discover all available pages before exploring further.
Triggering a calculation
Send aPOST request to /v1/sources/:sourceId/tax with the target year and jurisdiction.
Request fields
| Field | Type | Description |
|---|---|---|
year | integer | The tax year to calculate. Must be between 1970 and the current year. |
jurisdiction | string | The tax jurisdiction to apply. Currently only "germany" is supported. |
Response fields
| Field | Description |
|---|---|
year | The tax year this summary covers. |
currency | The reporting currency for all monetary values (e.g. "EUR"). |
taxableGains | Net gains from disposals of assets held for less than one year. |
taxableLosses | Net losses from disposals of assets held for less than one year. |
taxFreeGains | Gains from disposals of assets held for more than one year. Tax-free under German law. |
incomeTotal | Total income from staking rewards, airdrops, and other income-type events. |
How FIFO works
FIFO determines which specific units of an asset are considered sold when you dispose of crypto. The units you acquired first are treated as sold first. This matters for tax purposes because the holding period — and therefore whether a gain is taxable or tax-free — depends on when the specific units were acquired. For example, if you bought 1 ETH in January 2022 and 1 ETH in January 2024, then sold 1 ETH in February 2024, FIFO treats the January 2022 lot as the one sold. That lot has been held for over two years, so under German law the gain is tax-free.Taxable vs. tax-free gains
TaxMaxi separates gains into two buckets based on holding period:taxableGains— gains from assets disposed of within one year of acquisition. These are subject to income tax in Germany.taxFreeGains— gains from assets held for more than one year. Under §23 EStG, these are exempt from tax in Germany.
taxableLosses captures net losses from short-term disposals separately, since losses may be deductible against gains.
Income events
incomeTotal covers transaction types that are treated as income rather than capital gains, regardless of how long the asset was held afterward. This includes:
- Staking rewards
- Airdrops
- Other income-classified events