cryptonist
Fibre optic strands gathered into a bundle, their ends lit

DeFi

APY vs APR in crypto, and what a yield figure leaves out

Yield in crypto is what a deposit or a position pays its holder over time, stated as a percentage per year. APR is that rate without compounding. APY assumes the earnings are reinvested as they arrive and folds the effect in, so the same position always shows an APY at least as high as its APR. In DeFi both are readings of a variable, often taken over a few days and partly paid in a token whose price can fall, and neither includes the costs and losses that decide what a depositor actually ends up with.

What yield means in crypto

Crypto yield, or cryptocurrency yield, is the return on holding an asset in a place that pays for it: interest from borrowers in a lending pool, rewards for staking, a share of the trading fees in a liquidity pool, or an incentive paid in a project’s own token. Each of those has a different payer, and where crypto yield comes from takes them in turn. This piece is about the number on the screen.

Two things set that number apart from the rate on a bank deposit. It is usually variable, recalculated as often as every block or every second. And it is usually paid in tokens, so the percentage describes how many more tokens the holder will have, not how much more money.

APR and APY

An annual percentage rate is the simple rate: to take invented numbers, a 10% APR on 1,000 tokens pays 100 tokens over a year if nothing is reinvested. An annual percentage yield is what the same rate produces when each payment is added to the balance and starts earning too. If the rate is compounded n times a year,

APY = (1 + APR / n)^n − 1

and, going the other way, APR = n × ((1 + APY)^(1/n) − 1).

The more often a rate compounds, the higher the APY, up to a limit set by continuous compounding, and the gap widens as the rate rises. Illustrative arithmetic, not rates anyone is offering:

CompoundingAPY from a 10% APRAPY from a 100% APR
Once a year10.00%100.00%
Monthly10.47%161.30%
Daily10.52%171.46%
Every second10.52%171.83%

At ordinary rates the two labels differ by a fraction of a point. At high rates they differ by tens of points, so which label a figure carries matters more the higher the figure is.

Both terms have legal definitions in US consumer finance, written for banks and lenders. Regulation DD, which implements the Truth in Savings Act and applies to depository institutions, sets out the APY calculation for bank accounts as 100 × ((1 + Interest / Principal)^(365 / days in term) − 1), assuming that principal and interest stay on deposit for the whole term. Regulation Z defines an APR for loans as a measure of the cost of credit, which is a different thing again. Crypto borrows the names; the calculations, as the next section shows, vary from one protocol to the next.

The same label, different arithmetic

Protocols turn a rate into a figure in different ways, and their own documentation shows how:

  • Compound III’s contract returns a supply rate per second, and the documentation gives the APR as that rate multiplied by the number of seconds in a 365-day year. No compounding is assumed.
  • The JavaScript utilities Aave published for formatting contract data on a front end, a repository now marked deprecated, compute the supply APY by compounding the annual rate every second over 31,536,000 seconds.
  • Lido’s API documentation offers two staking figures. The latest APR takes the change in stETH’s share rate across one oracle report and scales it to a year by the seconds elapsed, without compounding; the other is a simple moving average of APR values over seven days. Both change once a day, after the oracle report.
  • Curve’s rewards documentation describes the base figure as a variable APY based on the pool’s recent daily activity, which compounds automatically, while CRV rewards, shown as a range because they can be boosted, and other token rewards must be claimed.
  • Hyperliquid’s funding documentation fixes the interest component of its funding rate, one input to a payment traders make to each other and not a rate paid on deposits, at 0.01% every eight hours, “or 11.6% APR”. Multiplied out without compounding, that rate is 10.95% a year. Compounded every eight hours it is 11.57%, so the label and the arithmetic come from different conventions. How perpetual funding works covers what the rate is for.

Take an invented pair: a 5% APR on one screen and a 5.1% APY on another. They are not what they look like. Compounded every second, a 5% APR is a 5.13% APY, so the second figure is slightly lower, not higher. Converting both to one basis is the first step in any comparison, and it settles only the arithmetic.

Compounding is an assumption

An APY describes a balance that is never touched. Regulation DD says so outright for bank accounts: the calculation assumes all principal and interest remain on deposit and no other deposits or withdrawals happen during the term.

In DeFi that assumption holds only where the protocol does the reinvesting. A balance that grows by itself, such as the share of a Curve pool’s fees that accrues to its LP tokens, compounds without the holder doing anything. A reward that has to be claimed compounds only if the holder claims it and deposits it again, and each of those is a transaction with a fee, which what gas is explains.

An illustration with invented numbers. $1,000 earning a 10% APR pays $100 over a year as simple interest, or $105.16 if compounded daily, so daily compounding is worth $5.16. If claiming and redepositing costs $0.50 each time, doing it daily costs $182.50 and weekly costs $26, either of which is more than compounding adds. On $100,000 at the same rate, daily compounding is worth about $516 against the same $182.50. Whether claiming and redepositing adds anything at all depends on the size of the position relative to the cost of a transaction.

Why a DeFi rate does not hold still

A bank sets its rate and changes it occasionally. Most DeFi rates are outputs of formulas whose inputs change all the time, and three inputs do most of the moving.

Utilisation. In a lending pool, the rate depends on how much of the pool is lent out. Compound III’s documentation defines utilisation as total borrows divided by total supply, makes both the supply and borrow rates functions of it, adds a kink above which rates rise faster, and notes that the rate models are set by governance. When a large deposit arrives, utilisation falls and so does the rate every existing lender earns; when borrowers repay, the same happens. How DeFi lending works follows the mechanism through.

Rewards priced in a token that can fall. An incentive rate is a value of tokens divided by a value of deposits. Aave’s utilities compute it as the reward tokens emitted per second, times the reward token’s price, times the seconds in a year, divided by the total deposited times the deposit token’s price. An illustration with invented numbers: a pool emitting 1,000 reward tokens a day worth $2 each, against $10m of deposits, shows a 7.3% reward APR. If the reward token falls to $1, the figure halves to 3.65%. If deposits double to $20m, it halves too. If the emission schedule ends, which the tokenomics piece treats as a matter of what was committed in advance, it goes to zero. The denominator is deposits valued at today’s prices, the same construction as total value locked.

A short window, annualised. Lido’s latest APR scales a single daily report up to a year, and its seven-day average spreads that over a week. Curve’s base figure rests on recent daily activity, and DefiLlama’s guidelines for the adapters behind its yield table, as the yield piece notes, ask for fee-based APY over a 24-hour window. An illustration with invented numbers: a pool that pays depositors 0.05% in one day shows an 18.25% APR, or a 20.0% APY compounded daily. One day of heavy trading can produce that, and a quiet day afterwards takes it away again.

Regulation DD’s rule for variable-rate bank accounts makes the hidden assumption visible: the APY is based on the rate in effect when the account is opened or advertised, on the assumption that the rate will not change during the year. A DeFi APY makes the same assumption, usually without stating it.

What a quoted figure does not include

The number on the screen describes one thing, the rate on the position at that moment. It leaves out several things that matter more.

The first is the price of what you hold. An illustration with invented numbers: a 10% APY paid in a token that falls 30% over the year leaves 1.10 × 0.70 = 0.77 of the starting value in currency, a 23% loss. The rate is stated in tokens, and the result is measured in money.

Then there are losses that belong to the position. A liquidity provider’s share can be worth less than the two assets held separately, which impermanent loss explained works through. A staked position can be slashed, which what liquid staking is covers. And the contract holding the deposit can be exploited, a loss how crypto gets hacked traces through the recorded incidents.

Costs are left out as well: gas to deposit, claim and withdraw, any fee a vault or venue takes (unless the figure is stated after it), and the cost of buying the token in the first place, which the fees you actually pay breaks down for an exchange.

A rate also says nothing about getting the deposit back. A lending pool whose assets are all lent out has nothing to hand back until borrowers repay or new deposits arrive, and lock-ups and exit queues delay withdrawals by design.

Nor does any quoted figure account for tax, which depends on where the holder lives.

Regulation DD offers a useful contrast here too. For a bank account, the APY reflects only interest: it leaves out bonuses, and it leaves out earnings that depend on circumstances that may or may not occur. A DeFi figure that folds in token rewards includes earnings whose value depends on exactly such circumstances, chiefly what the reward token will be worth when it is sold.

Comparing two figures

Convert first, then ask what each figure was measured over. Take two invented figures: a 7% APY computed from yesterday’s fees and an 8% APR held up by a reward token at its current price. They are not two readings of the same thing, and choosing between them on the number alone means choosing between two different exposures without looking at either. The fee part of a pool’s yield is the share of protocol fees that goes to the people supplying capital, and it moves with trading. The reward part moves with a token price and a schedule. The arithmetic in this piece gives the size a figure would reach if its inputs held for a year. In DeFi they are not fixed for a day.