Zum Inhalt springen

Kostenbasis-Methoden

Unterstützte Methoden

MethodeIDIRS-konformHinweise
First In, First OutFIFO✅ StandardÄlteste Lots werden zuerst verkauft
Last In, First OutLIFO⚠️ Specific IDSpecific ID muss gewählt werden
Highest In, First OutHIFO⚠️ Specific IDSpecific ID muss gewählt werden
Specific IDSPECIFIC_IDManuelle Lot-Auswahl
Germany FIFOGERMANY_FIFO🇩🇪§23 EStG, 1-jährige Haltedauer
PMPAPMPA🇨🇦 🇦🇺Adjusted Cost Base
Total AverageTOTAL_AVERAGE🌍Durchschnittliche Kostenbasis
UK Share PoolingUK_SHARE_POOLING🇬🇧Section 104 Pool + 30-Tage-Regel

IRS-Hinweis

Der IRS erlaubt FIFO und Specific Identification für Krypto (Rev. Rul. 2023-14). LIFO und HIFO sind technisch gesehen Specific-ID-Strategien — Sie müssen Aufzeichnungen auf Lot-Ebene führen und Ihre Methode konsequent anwenden.

Verwendung

import { computeGains, compareAllMethods } from '@dtax/tax-engine';
// Single method
const result = computeGains(transactions, {
method: 'FIFO',
taxYear: 2024,
});
// Compare all 7 comparable methods (excludes SPECIFIC_ID)
const comparison = compareAllMethods(transactions, 2024);
comparison.forEach(({ method, totalGain, recommendation }) => {
console.log(`${method}: $${totalGain} ${recommendation ? '← recommended' : ''}`);
});

Ergebnis-Struktur

interface GainResult {
shortTermGain: number;
longTermGain: number;
totalGain: number;
disposals: Disposal[];
unrealizedGain?: number;
}