Wealthy Habitat

Library · Crypto, deeper · Published 10/1/2026

Yield farming and its risks

Yield farming lets you lock crypto in a program to earn fees and new tokens, but you can lose money to code failures, token price drops, or price movements between the coins you supplied.

In short

A friend of mine once showed me his phone and a number that made him grin. It was a yearly rate of return so high that it looked like a typo. Yield farming is the practice of lending or locking up crypto in a software program to earn rewards. The rewards come from fees paid by other users and from new tokens the program hands out. You can lose money three ways: the code breaks, the token you earn drops in price, or the pair of coins you supplied moves apart in value. Advertised rates are snapshots, and they change by the hour. If you are thinking about trying it, learn what pays the reward before you chase the number. Start with an amount you would shrug off losing, and write down your costs before you click anything. Rewards earned may be taxable income, so keep records from day one.

The whole of it

What it is

I once watched a neighbor park his truck in a stranger's barn for the winter. He charged nothing, but the barn owner gave him a few bales of hay for the trouble. That is a rough picture of yield farming. You hand over your crypto, and the program pays you for letting it use your coins.

Most of this happens on decentralized finance platforms, often called DeFi. These are apps that run on a blockchain, which is a shared public record book. The apps use smart contracts, which are small programs that hold money and follow fixed rules without a person in the middle. A lending app lets you deposit coins so others can borrow them. An exchange app lets you deposit pairs of coins so other people can trade against them.

You have probably heard the word yield used for plain things like savings interest. Here it means whatever the program pays you. That might be a slice of trading fees. It might be interest from borrowers. It might be a brand new token the project created to attract depositors.

How it works

If you are holding some crypto and wondering how it could earn, here is the common path. You connect a wallet, which is an app that holds your coins and signs your moves. You choose a pool, which is a shared bucket of coins. You deposit, and the program gives you a receipt token that proves your share. Some programs ask you to lock that receipt token somewhere else to earn extra rewards. That stacking is where the word farming comes from.

Let me walk through the exchange kind, since it is the most common. Say a pool holds two coins, and traders swap one for the other. Each swap pays a small fee. Those fees go to the people who supplied the coins, split by share. Your share is your deposit divided by the whole pool.

Now the part that surprises folks. Prices inside the pool shift as traders buy and sell. If one coin soars on the open market, the pool ends up holding less of it and more of the other. When you pull out, you may hold fewer dollars than if you had simply kept your coins in your wallet. People call this impermanent loss. It is impermanent only if prices drift back. If they do not, the loss is real.

Then there are the reward tokens. Many projects pay extra in their own token. That token has a price that can fall fast, especially when everyone farming it sells at once. A rate that looks like a hundred percent a year can shrink to nothing if the reward token loses its value.

The numbers, and where to find yours

You will see two figures on these platforms. APR is the simple yearly rate. APY assumes you keep adding your earnings back in, so it looks bigger. Both are estimates based on what happened lately, not promises about what comes next. Ask yourself what the number is built from, fees or new tokens, because the two behave very differently.

Costs matter more than most folks expect. Every move on a blockchain carries a network fee, often called gas. You pay it to deposit, to claim rewards, and to withdraw. If your deposit is small, those fees can eat the whole gain. Look at the fee estimate your wallet shows before you confirm, and add it up for the full trip in and out.

For taxes, the rules in the United States are set by the Internal Revenue Service. Its page on digital assets explains that digital assets are treated as property, and it gives the question about them on the Form 1040. Whether your rewards count as income, and when, depends on your facts, so read that page and keep a log of every deposit, reward, and withdrawal with the date and the dollar value that day. Any dollar thresholds and deadlines change by year, so check the IRS page for the current ones: the current figure, which the official source publishes each year.

A worked example

A woman I will call Maria had 2,000 dollars in coins she was willing to risk. She put 1,000 dollars of one coin and 1,000 dollars of a second coin into a pool. The platform showed an advertised rate of 40 percent a year.

She did the math the careful way. Forty percent of 2,000 dollars is 800 dollars a year. That looked fine. But 40 percent was a snapshot, and half of it came from the project's own reward token. She decided to count only the fee portion as solid, which she guessed at 20 percent. Twenty percent of 2,000 dollars is 400 dollars.

Then she subtracted costs. Gas to deposit was 15 dollars. Gas to claim rewards twice was 20 dollars. Gas to withdraw was 15 dollars. Together that is 15 plus 20 plus 15, or 50 dollars. So 400 minus 50 leaves 350 dollars.

Now came the price move. Suppose one of her coins rose sharply and the pool rebalanced. Say her pool share, when she withdrew, was worth 1,900 dollars, while simply holding both coins would have been worth 2,100 dollars. That gap is 200 dollars of impermanent loss. Her fees of 350 dollars minus that 200 dollar gap leaves 150 dollars.

And what if the reward token fell by half? The other 20 percent of her advertised rate was 400 dollars in tokens. Half of that is 200 dollars. Add it back, and she nets 350 dollars from rewards and fees, minus the 200 dollar gap, which gives 150 dollars. Her real result was a small gain, not 800 dollars. And if the pool code had failed, she could have lost the whole 2,000.

Where it goes wrong

I have learned that the shiniest number on the page deserves the most questions. Here are the ways this goes sideways.

Code can fail. Smart contracts are written by people, and people make mistakes. A flaw can let a thief drain a pool. Audits, which are reviews by outside experts, help but do not guarantee safety. There is often no bank to call and no insurance that makes you whole.

Reward tokens can collapse. When a project prints lots of new tokens, the price often sags as holders sell. Your rate on paper stays high while your tokens lose value in your hands.

Impermanent loss can outrun your fees. If prices swing hard, the gap can be larger than what you earned.

Some projects are scams. A rug pull is when the builders take the money and vanish. They often write the code so only they can move funds. Check who built the project and whether the code was reviewed.

Rates can crash overnight. When more people pour in, the same rewards get split more ways. A rate that looked great Monday may be tiny by Friday.

Tax records can pile up. Each reward and each swap may be a taxable event. Without records, you will struggle at filing time.

Questions to answer before you leave this page

Do you know what actually pays the reward, fees or a new token, and what happens to your income if that token loses half its price? Could you lose the whole amount and still sleep fine tonight? Have you added up the network fees for going in, claiming, and getting out, and does your deposit still make sense after them? Do you know who built the program, and has anyone outside reviewed the code? Have you compared your result with simply holding your coins, so you can see what impermanent loss might cost you? Do you have a spreadsheet ready to log every deposit, reward, and withdrawal with its date and dollar value? And have you read the IRS page on digital assets so you know what to report?

Related

coins tokens and networks
defi lending
crypto taxation
scams rug pulls and how they work

Ask about this guide

A model reads this page and answers from it. It will say when the answer is not on the page. Education, not personalized advice.

Written by the site's growth engine and checked by its gates: voice, law and ethics, facts, arithmetic, and sources. Not yet read by a human editor; every page carries the correction process. Rules and dollar limits change every year; figures come from the rules table with their source and date.