HostDeFi › Selling tokens
How to sell tokens
The button is easy — the fill isn’t. Price impact, slippage, exit sizing, and the flags that mean you can’t sell at all.
Selling a token looks like the easy half of the trade until the moment it isn't — the button exists, but the outcome depends on liquidity depth, slippage, and whether the token's contract even permits your sale to clear. This guide covers how a sell actually executes on a DEX, how to size it so the pool doesn't eat the fill, and the flags that mean you can't sell at all.
What happens when you hit sell
A DEX sell is a swap against a liquidity pool, not an order to a counterparty. You send tokens in, the pool's pricing curve returns quote asset (SOL, USDC), and the price you receive slides along that curve with your size relative to the pool. Two consequences follow: the displayed price is a marginal price — your actual average is worse the larger your share of the pool — and a sale big enough can move the market against you mid-transaction. That slide is price impact; the tolerance you grant for it is slippage.
Practical translation: check the quoted output against the marked price before confirming, and set slippage to the minimum that clears in current conditions — tight on deep pairs, looser on thin or fast-moving ones. Slippage set absurdly high to "just get out" invites sandwich bots to take the difference as their fee.
Sizing the exit to the pool
Before a position is a profit it is a fraction of a pool's depth. If your sell is a few percent of the liquidity, impact is noticeable; at ten-plus percent it is punitive. The discipline that works: on the way in, note the pool depth and decide your tranche size from it — several moderate sells spaced out routinely net more than one max-sized dump, and on genuinely thin pools even tranches can't fix the math. A $50k position in a $20k-liquidity pool is a number on a screen, not money.
When the sell button does nothing
Some tokens are built so you can't leave. The mechanics: a freeze authority that locks your token account, a honeypot configuration that lets buys clear and blocks sells, or a deployer who can blacklist addresses. These are not hypotheticals — they're the core of most rugs, and they're visible in account state before you buy. If you already hold a token that won't sell, the honest answer is that the contract won and the loss happened at purchase; the fix is scanning the next one first.
Can this token even be sold?
Freeze authority live means your exit exists at the issuer’s discretion — check before you buy, not after.
Exit mechanics that actually work
The sellers who keep their gains share a pattern: they decide exits while calm. Recovering principal early turns the rest into a freeroll; selling in fixed tranches beats hunting the exact top; and certain events — a deployer wallet moving to an exchange, liquidity being pulled, unlock cliffs — are exits regardless of the chart. A memecoin position you can't exit on your terms is a position in someone else's discretion.
On the housekeeping side: keep enough SOL for fees, and remember every disposal is likely a taxable event in your jurisdiction — the venue can't compute your liability, but the transaction history is on-chain and permanent.
Frequently asked
How do I sell a token on Solana?
Through a DEX swap: connect or load the wallet holding the tokens, select the token and the asset you want back (SOL/USDC), check the quoted output and slippage, and confirm. The transaction settles in one on-chain swap — there is no order book counterparty.
Why is my sell worth less than the price shown?
The displayed price is marginal — the last small trade’s price. Your sell walks down the pool’s pricing curve, so a large sale receives a worse average than the mark. That gap is price impact, and it grows with your share of the pool’s liquidity.
What slippage should I set when selling?
The minimum that clears: tight (0.5–1%) on deep, stable pairs; looser on thin or fast-moving ones. Very high slippage "just to get out" hands the difference to sandwich bots.
Why can’t I sell my token?
The contract likely doesn’t allow it: an active freeze authority can lock your token account, and honeypot configurations let buys through while blocking sells. Both are visible on-chain before purchase — which is why the scan is a pre-buy step, not a post-mortem.
Is it better to sell all at once or in parts?
In tranches, on any pool where your size is a meaningful share of liquidity. Several moderate sells routinely net more than one maximum-size sell because each moves the price less.
Do I pay tax when I sell crypto tokens?
In most jurisdictions a token-for-token or token-for-fiat disposal is a taxable event — the venue doesn’t compute it for you, but the history is permanently on-chain. Track cost basis as you go; a tax tool or accountant is the right place for the actual filing.