Koinly’s Tax Optimization dashboard can estimate what might happen to calculated gains or losses if selected crypto assets were sold at a chosen market price. It can surface unrealized losses, distinguish short- and long-term positions where relevant and model a post-sale result without placing a trade. The numbers are only as reliable as the imported history, cost-basis settings, market prices and tax assumptions behind them.

Last reviewed: November 1, 2026. Koinly features, plans, calculations and interface labels can change. Tax-loss rules differ by country, tax year, entity and individual circumstances. This independent guide explains a software workflow; it is not personalized tax, legal, accounting or investment advice. Confirm the live Koinly documentation and consult a qualified professional before acting.

Quick answer: reconcile every wallet and correct material warnings before opening Tax Optimization. Select an asset to model a possible disposal, review its cost basis and unrealized result, then account for fees, spread, liquidity and local loss rules outside the headline estimate. A what-if selection does not sell crypto, guarantee a tax saving or replace the final report after a real transaction.

What Koinly Tax Optimization does

The Tax Optimization dashboard is a planning view built from the transaction ledger in a Koinly account. Its asset table uses holdings, current prices, acquisition history and active calculation settings to estimate unrealized results. Selecting an asset lets the user preview how a hypothetical sale could affect the calculated gains for the period.

According to Koinly’s official documentation, the dashboard can:

  • list assets, quantities and current market values;
  • show potential gains or losses;
  • separate short-term and long-term results where the country setting uses that distinction;
  • select assets for a hypothetical sale;
  • update a post-harvest gains preview as selections change;
  • change an asset’s assumed current rate for scenario testing;
  • filter assets with positive gains or an unknown current price.

The dashboard does not connect to an exchange to execute an order. It is a calculation tool, not an investment recommendation or trading terminal.

What the dashboard cannot decide

Koinly can apply selected settings to supplied data, but it does not know every fact that determines legal tax treatment. It may not know beneficial ownership, residency changes, business status, whether an asset is genuinely worthless, whether a transaction was part of a broader arrangement or whether a local anti-avoidance provision applies.

Tax Optimization cannot guarantee:

  • that every wallet and acquisition has been imported;
  • that a market price is achievable;
  • that an apparent loss is legally deductible;
  • that a repurchase will receive the expected treatment;
  • that an exchange will execute at the simulated price;
  • that future legislation will remain unchanged;
  • that the lowest displayed gain is the correct filing position.

Realized versus unrealized gains and losses

An unrealized result compares an asset’s current estimated value with the cost assigned to units still held. It is a planning number. A realized result generally arises when a transaction recognized as a disposal occurs, such as a sale, swap or other taxable transfer under the applicable law.

Term Practical meaning Koinly context
Cost basis Cost assigned to the units under the applicable calculation method Comes from acquisitions, fees, transfers and account settings
Market value Estimated current value of the position Depends on Koinly’s price source or an entered scenario rate
Unrealized gain Estimated value exceeds assigned cost Potential result if disposal occurred at the assumed price
Unrealized loss Estimated value is below assigned cost Potential loss, not yet necessarily realized or deductible
Realized result Gain or loss associated with an actual recognized disposal Appears after the real transaction is imported and calculated

A falling portfolio value is not automatically a tax loss. Ownership may continue without a disposal, and local rules determine which events recognize a loss.

Where to find Tax Optimization

In the current Koinly workflow, Tax Optimization is associated with the tax-reporting area. Interface names and plan access can change, so use the live account and official Help Center rather than an old screenshot.

  1. Sign in through the verified Koinly domain.
  2. Confirm the correct portfolio, home country and reporting currency.
  3. Open the tax-reporting area and select the intended tax year.
  4. Open Tax Optimization.
  5. Review warnings before relying on the asset table.
  6. Select assets only to model a scenario.

Koinly does not need a seed phrase, private key or withdrawal-enabled exchange key for tax calculations. A request for spending authority is not part of this workflow.

Read the asset table before selecting anything

The asset table summarizes the holdings that Koinly derives from imported data. Start by comparing the quantity and value of each material asset with the actual exchange or wallet position at the same point in time. If Koinly believes the portfolio holds 2 ETH while the real accounts hold 1 ETH, the hypothetical sale is already based on a defective premise.

Review:

  • asset symbol and identity, including chain or contract where relevant;
  • quantity held;
  • current market rate;
  • estimated market value;
  • assigned cost of remaining lots;
  • potential gain or loss;
  • short- and long-term split if displayed;
  • warnings about missing prices or acquisition history.

How a what-if scenario works

Selecting an asset asks Koinly to calculate a hypothetical outcome using the selected quantity, current or entered price, cost-basis lots and existing gains in the chosen period. The post-harvest table updates as assets are selected or deselected.

This is useful for comparison. It does not reserve a price or create an instruction. If the market moves between the preview and the real trade, the outcome changes. A real order can also incur trading fees, spread, slippage, withdrawal costs or currency conversion that the simple scenario may not reproduce exactly.

Example: Koinly estimates that selling a position at $8,000 would realize a $2,000 loss. If the exchange fills at $7,850 and charges $25, the imported disposal will not have the same proceeds as the preview. The applicable method may also select several lots rather than one averaged purchase.

Changing the simulated market price

Koinly documents an option to edit the current market rate for scenario testing. This allows questions such as: what would the result look like if the asset fell another 10%, or if a limit order executed at a chosen level?

Use a realistic executable rate. A displayed price from a thin market may represent a tiny trade, an inactive pair or a token with no practical liquidity. Entering an optimistic rate can make a plan appear more useful than the market allows. Record the assumed price and time so the scenario can be reproduced.

What is crypto tax-loss harvesting?

Tax-loss harvesting is the deliberate realization of an investment loss so it may offset eligible gains or receive another treatment permitted by local law. The general idea is simple, but the legal result is not universal.

  1. An asset has fallen below its assigned cost.
  2. The owner completes a transaction recognized as a disposal.
  3. The disposal creates a realized result under the applicable rules.
  4. The loss is applied, limited or carried according to local law.
  5. If the asset is repurchased, the new position receives a new or adjusted basis under the applicable rules.

Koinly can identify apparent unrealized losses and model the calculation. It cannot promise that realizing a particular loss is economically wise or legally effective.

Why harvesting is not free money

Realizing a loss can reduce a current taxable gain, but it also closes an investment position. Repurchasing may create a lower cost basis and a larger future gain if the asset later recovers. The benefit may therefore be a timing change rather than permanent elimination of tax.

Other costs include:

  • trading and network fees;
  • bid-ask spread and slippage;
  • market exposure while out of the position;
  • repurchase restrictions or anti-avoidance rules;
  • additional record-keeping;
  • the risk that a desired token becomes unavailable;
  • professional-advice and filing costs.

A small simulated saving may disappear after these costs. Compare the after-cost result, not merely the largest red number in the dashboard.

Wash-sale and repurchase rules vary by country

Do not copy a waiting period from a stock article and assume it applies identically to cryptocurrency everywhere. Countries use different definitions, matching rules, repurchase periods and anti-avoidance provisions. Some rules can match acquisitions by a spouse, related account or entity; others apply share-pooling or superficial-loss concepts rather than a rule labelled “wash sale.”

Determine:

  • the taxpayer’s residence and entity type;
  • the law for the relevant tax year;
  • whether the asset is within the rule’s scope;
  • whether a related acquisition can deny or defer the loss;
  • how any denied amount changes the replacement asset’s basis;
  • whether pending legislation affects the intended date.

Koinly’s calculation settings are helpful but do not replace country-specific professional analysis.

Short-term and long-term positions

Where a jurisdiction applies different treatment based on holding period, Koinly may split potential gains and losses into short- and long-term portions. The split depends on acquisition dates and the lots selected by the active method.

An asset balance is often composed of several lots. A user may have bought BTC monthly for two years. A hypothetical disposal can draw from both long-held and recently acquired units, so the entire asset should not be described by the date of the first purchase.

Before acting near a holding-period threshold, inspect Cost Analysis or the applicable ledger detail. A one-day timestamp or timezone error can change the classification of a marginal lot.

Cost-basis method controls the preview

FIFO, HIFO, LIFO, Average Cost, Share Pooling and other supported approaches do not select the same cost for a sale. The home-country setting and tracking scope also affect which lots are available. Two users selling the same token at the same price can therefore see different results.

Do not switch methods simply to make the Tax Optimization screen display a larger loss. A global settings change may recalculate prior years and make current reports inconsistent with returns already filed. Preserve old reports and use a supported migration only when the law and facts require a change from a defined date.

For a detailed explanation, see the site’s Koinly Cost Basis Settings Guide.

Wallet-based versus universal tracking

The cost-basis method determines lot order; tracking scope determines where Koinly searches for those lots. Under universal tracking, eligible units may be considered across wallets. Under wallet-based tracking, a disposal generally selects from lots assigned to the wallet involved, subject to the applicable settings and migration.

If an actual trade will occur on Exchange A, but the simulated low-cost or high-cost units reside in Wallet B under wallet-based tracking, the eventual imported result may differ from an assumption that all holdings form one pool. Confirm lot location and transfer consequences before relying on the preview.

Fix missing purchase history first

A missing acquisition can give an asset zero or incomplete cost, overstating potential gain and understating potential loss. Tax Optimization cannot repair this by itself.

Common causes include:

  • a forgotten exchange or closed account;
  • an API with limited historical coverage;
  • a required CSV that was not imported;
  • a blockchain address or Layer 2 omitted from the account;
  • an unmatched self-transfer;
  • duplicate or wrongly deleted transactions;
  • a token migration or symbol change;
  • a timestamp converted into the wrong timezone.

Trace the earliest warning back to source records. Do not invent a purchase at the desired price merely to remove an alert.

Reconcile balances before planning a sale

Compare Koinly’s calculated balance with the actual quantity held for every material asset. A mismatch can indicate missing deposits, withdrawals, fees, staking activity, rebasing, unsupported contracts or manual edits.

Work chronologically from the first point where the balances diverge. A balancing entry can hide the symptom while leaving acquisition dates and cost wrong. The objective is a traceable ledger, not simply a green balance indicator.

Assets with an unknown current price

Koinly allows assets with unknown prices to be filtered. A missing rate may occur when a token is illiquid, delisted, newly issued, identified under the wrong contract or unsupported by the market-price provider.

Before entering a manual scenario price:

  1. verify the blockchain and contract address;
  2. confirm that the position is genuinely owned;
  3. find an actual market with meaningful volume;
  4. distinguish an executable bid from a headline quote;
  5. document the source, timestamp and currency;
  6. consider whether the position can legally and practically be sold.

A token displaying a nominal price is not necessarily liquid enough to realize that value.

Spam tokens and address poisoning

Public addresses can receive unsolicited tokens that imitate valuable assets, advertise a malicious website or poison transaction history. Their displayed balance must not be treated as a genuine investment opportunity or deductible loss without careful verification.

Koinly’s official guidance warns users not to interact with malicious tokens on-chain. Do not visit a URL embedded in a token name, approve its contract, swap it or transfer it merely to “clean” a wallet. Within Koinly, a confirmed spam token can be marked as spam according to the current documentation. If a legitimate traded token was classified incorrectly, use official support.

Stablecoins can show gains or losses

A stablecoin targets a reference value; it does not guarantee that every acquisition and disposal occurs at exactly that value. A result can arise from depegging, exchange spreads, fees, reporting-currency movements or an inherited cost under a particular transaction treatment.

Example: a user acquires stablecoins when one unit is worth $0.98 and later sells at $1.00. Even though the token is described as dollar-pegged, the position can have a positive result before fees. Conversely, a stressed sale below the peg can create a loss.

DeFi positions require extra review

Liquidity pools, lending positions, wrapped assets, vault shares and liquid-staking tokens may not behave like a simple quantity bought once and sold once. Entering a protocol can exchange one asset for a receipt token, create several transfers or produce rewards. Local tax treatment is not uniform.

Before using a DeFi asset in Tax Optimization, verify:

  • both sides of every bridge and protocol transaction;
  • the identity and quantity of receipt or LP tokens;
  • staking and farming reward labels;
  • fees and gas transactions;
  • whether liquidity events were recognized automatically;
  • whether the market rate represents redeemable underlying value;
  • the legal treatment accepted for the jurisdiction.

Staking and locked assets

A dashboard may show an unrealized loss for an asset that cannot currently be sold because it is locked, delegated or subject to an unbonding period. A hypothetical disposal price is not operationally useful if the units cannot reach a market before the planning deadline.

Confirm unlock timing, protocol rules, exchange withdrawal status and network congestion. Do not sign an unfamiliar contract or use an unverified “instant unstaking” service solely to meet a tax date.

Partial sales and mixed acquisition lots

Selling part of an asset does not always realize a proportionate share of the total displayed gain or loss. The active method selects specific lots or applies a pool calculation. A position with an overall loss may contain profitable lots, and a profitable position may contain individual loss lots.

Example: one ETH was bought for $4,000 and another for $1,000. At a $2,500 market price, the combined position has no overall gain or loss before fees. Selling one ETH can nevertheless produce either a gain or loss depending on the legally applicable lot-selection method and tracking scope.

Inspect the quantity and lots included in the scenario rather than multiplying the full-position average by a partial sale.

Fees, spread and slippage

A scenario should include realistic execution costs. Trading fees reduce proceeds or increase acquisition cost according to their role and local treatment. Network fees can have a separate classification. Spread and slippage are reflected in the actual execution price rather than necessarily appearing as a labelled fee.

For small positions, total costs may exceed the expected tax benefit. For a thinly traded token, attempting to sell the full balance can move the market substantially below the displayed quote.

Tax-year deadlines and settlement timing

A planning deadline is not always satisfied by deciding to sell or placing an unfilled order. The legally relevant date can depend on trade execution, contractual rights, settlement rules and jurisdiction. Blockchain timestamps are in UTC, exchanges can report local time and tax years do not all end on December 31.

Confirm the applicable tax-year boundary and avoid leaving a complex transaction to the final minutes. Preserve the order confirmation, transaction hash, exchange export and timezone used in the report.

Manual test transactions require discipline

Koinly’s documentation notes that a manual transaction can sometimes be used to simulate an outcome when the optimization view is not suitable. A test entry must be unmistakably documented and removed or isolated before generating a real report. Otherwise, it can create a disposal that never occurred, distort balances and select cost from genuine lots.

Prefer the dedicated scenario tool. If a manual test is necessary, export a backup first, record every field, and confirm afterward that the production ledger contains only real activity.

Step-by-step year-end review

  1. Build a wallet inventory. Include closed exchanges, self-custody addresses, Layer 2 networks and DeFi accounts.
  2. Complete all imports. Let API and blockchain syncs finish before editing.
  3. Reconcile material balances. Trace differences instead of inserting unexplained adjustments.
  4. Resolve warnings. Prioritize missing purchase history, negative balances, unknown prices and unmatched transfers.
  5. Confirm settings. Record home country, currency, cost-basis method, tracking scope and migrations.
  6. Preserve a snapshot. Download available transaction data and existing reports before planning changes.
  7. Select the correct period. Confirm the local tax-year dates.
  8. Open Tax Optimization. Compare quantities and market rates with current holdings.
  9. Model realistic sales. Use executable prices and intended quantities.
  10. Add external costs. Estimate fees, spread, slippage and professional costs.
  11. Check local law. Review repurchase, loss limitation and holding-period rules.
  12. Make an independent decision. Do not trade solely because software highlights a loss.
  13. Import the actual transaction. Reconcile price, quantity, fee and timestamp after execution.
  14. Generate final reports. Recalculate and preserve evidence used for filing.

Worked example: a loss beside a gain

Assume a taxpayer has a realized $3,000 crypto gain and holds another asset with an estimated $2,000 unrealized loss. The dashboard models a sale and displays a lower post-harvest net gain.

Before treating that difference as a saving, the taxpayer must verify that the loss asset’s cost is complete, the sale is recognized in the intended year, the loss can offset that kind of gain, no repurchase rule changes the treatment and execution costs do not outweigh the benefit. If the position is repurchased at a lower basis, a later recovery can create a larger future gain.

Worked example: incorrect zero cost

Koinly shows a token worth $5,000 with a $5,000 potential gain. The user remembers buying it for $4,200 on an old exchange. The optimization result is not evidence of a real $5,000 gain; it is evidence that the acquisition trail may be missing.

The correct response is to retrieve the old exchange history, import it into the proper wallet and reconnect any transfers. Manually choosing a $4,200 cost without source evidence can conceal other missing activity.

Worked example: illiquid token

A wallet holds one million units of a token whose last tiny trade implies a $10,000 position, while available market depth would support only a fraction of that amount. A scenario using $10,000 proceeds is not realistic. Model an executable price and consider whether the asset can be disposed of at all without interacting with a malicious or restricted contract.

Worked example: year-end timezone

An exchange reports a trade at 00:15 local time on January 1 while the API record uses 23:15 UTC on December 31. Whether it belongs in one tax year or the next cannot be guessed from a screenshot. Preserve both timestamps, confirm the reporting convention and apply the rule consistently.

Common Koinly Tax Optimization mistakes

  • Planning from incomplete wallet history.
  • Ignoring missing purchase warnings.
  • Changing the cost-basis method only to create a larger loss.
  • Assuming the displayed price can be obtained for the full position.
  • Treating an unrealized result as already deductible.
  • Applying another country’s wash-sale rule.
  • Forgetting fees, spread and slippage.
  • Interacting with spam tokens to manufacture a disposal.
  • Leaving manual test transactions in the final ledger.
  • Assuming all units share one acquisition date.
  • Counting a top-level estimate as professional tax advice.
  • Failing to re-import and verify the actual sale.

Records to preserve

A reproducible decision file should contain:

  • the wallet and exchange inventory;
  • original CSV and account exports;
  • public addresses used for imports;
  • Koinly settings and migration records;
  • reports generated before changes;
  • the scenario date, price, quantity and assumptions;
  • professional advice relied upon;
  • trade confirmations and blockchain hashes;
  • actual fees and settlement amounts;
  • final Koinly transaction and tax reports.

Koinly notes that previously generated files may not remain downloadable forever. Save copies securely instead of assuming a past report link will always work.

Security checklist

  • Use the verified Koinly domain and a unique password.
  • Protect the account with available multi-factor authentication.
  • Use read-only API permissions where supported.
  • Never share seed words, private keys or withdrawal credentials.
  • Verify contract addresses before valuing unfamiliar tokens.
  • Do not connect a wallet to a token’s embedded website.
  • Redact addresses and account identifiers from public screenshots.
  • Store tax exports in an encrypted, backed-up location.
  • Use official in-app support for account-specific problems.

Frequently asked questions

Does Koinly Tax Optimization sell my crypto?

No. The dashboard models possible sales. A selection does not sign a blockchain transaction, place an exchange order or move assets.

How does Koinly calculate unrealized gains?

It compares an estimated current value with cost assigned to remaining units under the account’s imported history and calculation settings. Missing data or an incorrect method can make the result unreliable.

Can Koinly find tax-loss harvesting opportunities?

It can highlight positions with estimated unrealized losses and simulate possible disposals. Whether realizing a loss is allowed or useful depends on local law, execution costs and personal circumstances.

Why are my unrealized gains wrong?

Check wallet quantities, missing acquisitions, duplicate imports, unmatched transfers, token identity, market price, cost-basis method, tracking scope and reporting currency.

Can I change the assumed market price?

Koinly’s official guide documents editable current rates for what-if testing. Use a realistic executable price and save the assumption.

Does tax-loss harvesting work in every country?

No single process produces the same legal result everywhere. Loss restrictions, repurchase rules, matching methods and tax-year dates differ by jurisdiction.

Why does a stablecoin show a gain or loss?

The actual acquisition and disposal rates can differ from the peg. Fees, currency conversion, depegging and inherited cost can also affect the calculation.

Can I optimize a DeFi position?

Koinly can import and calculate many DeFi events, but complex receipt tokens, pools, bridges and rewards need careful reconciliation and jurisdiction-specific treatment before a scenario is trusted.

Does the dashboard include fees?

The preview derives from existing data and scenario assumptions, while a future trade’s actual fee and execution price are not yet known. Model external costs and verify the imported transaction afterward.

Can Koinly guarantee a tax saving?

No. Koinly provides calculations from supplied data. The taxpayer remains responsible for the transaction, legal treatment, return and supporting evidence.

Should I change from FIFO to HIFO before harvesting a loss?

Do not change a method merely to obtain a preferred result. Use the method legally applicable to the account and preserve continuity with earlier filings or a supported migration.

What should I do after the real sale?

Import or synchronize it, verify timestamp, quantity, proceeds and fees, review the selected lots, resolve warnings and generate updated reports.

Final assessment

Koinly Tax Optimization is most useful after the ledger is already reliable. It can turn thousands of acquisition records into a focused view of potential gains and losses, but it cannot transform incomplete history into a defensible tax result.

Reconcile first, simulate second and trade only after considering local rules and economic costs. Then import the actual transaction and preserve the final records. This order keeps a planning tool from being mistaken for a guarantee.

Official Koinly resources

Visit Koinly ↗Official website