Book a free call

Algorithmic Stablecoins in DeFi: How They Work and Why They Fail

Algorithmic stablecoins hold a dollar peg with code instead of reserves. Learn the three main designs, where DeFi uses them, and why the largest ones collapsed.

Hertiv engineering teamReviewed by a senior engineer
8 min read
Algorithmic Stablecoins in DeFi: How They Work and Why They Fail
On this page

Short answer

An algorithmic stablecoin is a crypto token that holds a target price, usually one US dollar, by changing its own supply through code rather than by holding dollars or other assets in reserve. DeFi protocols use them for trading, lending and yield because they need no bank, but several of the largest ones lost their peg when confidence fell and the supply mechanism fed the sell-off.

What is an algorithmic stablecoin?

An algorithmic stablecoin is a crypto token that holds a target price, usually one US dollar, by changing its own supply through code rather than by holding dollars or other assets in reserve. When the price rises above the target, the protocol creates more tokens; when it falls below, it removes tokens from circulation.

That is the key difference from an asset-backed stablecoin, which holds dollars, bonds or other assets in a vault and lets holders redeem one token for one dollar of assets. An algorithmic stablecoin holds little or no collateral. Its peg rests on the rules in its code and on traders believing those rules will work.

DeFi protocols like them because they need no bank account, no custodian and no permission. A lending pool or a trading pair can use an algorithmic stablecoin the same way it uses any other token, and the token can be created and moved entirely on-chain.

How do algorithmic stablecoins hold their peg?

Algorithmic stablecoins hold their peg by giving traders a reason to push the price back to the target. The protocol sets a rule: if the token trades above one dollar, you can create new tokens at one dollar and sell them for a profit; if it trades below, you can buy them cheap and redeem them for one dollar of value. That arbitrage is supposed to pull the price back.

The rule only works while traders trust it. If they believe the protocol can always honour redemptions, they buy the dip and the peg recovers. If they stop believing, nobody buys, the price keeps falling, and the mechanism itself starts creating more tokens, which pushes the price down further.

Three designs dominate. Seigniorage models use a second token to absorb the swings. Rebasing models change every holder's balance. Fractional models mix a share of real collateral with the algorithm. The table below compares them.

DesignHow it holds the pegCollateralMain weakness
SeigniorageSecond token absorbs supply changesNone or very littleDeath spiral when the second token falls
RebasingBalances grow or shrink dailyNoneConfusing balances; thin liquidity
FractionalPart collateral, part algorithmPartly backedPeg still relies on the algorithm share

How do seigniorage models work?

A seigniorage model uses two tokens: the stablecoin and a companion token that absorbs the changes in supply. When the stablecoin trades above one dollar, the protocol mints new stablecoins and gives them to holders of the companion token. When it trades below one dollar, holders can burn stablecoins and receive new companion tokens worth one dollar.

The idea is that the companion token carries the risk. In a calm market the system works: small price moves are corrected by arbitrage, and the companion token holds its value. The problem appears in a sharp fall. Burning stablecoins mints more companion tokens, which dilutes their price, which makes the next redemption mint even more.

The best-known example is Terra's UST, the largest algorithmic stablecoin, which lost its peg in May 2022 and fell to a few cents within days. Its companion token, LUNA, was minted in huge quantities during the fall and lost almost all its value. The episode is the main reason DeFi teams now treat unbacked seigniorage designs with caution.

How do rebasing and fractional models differ?

A rebasing stablecoin changes every holder's balance instead of its price. If the token trades above target, your balance grows; if it trades below, your balance shrinks. The price per token stays near one dollar, but the number of tokens in your wallet changes every day, which makes accounting and tax work awkward.

Rebasing also struggles with liquidity. Trading pairs and lending pools expect a token's balance to stay fixed, so a token that rebases cannot be used in many DeFi protocols without special handling. That limits where the stablecoin is useful, and thin liquidity makes the peg easier to break.

Fractional models try to fix this by backing part of the supply with real collateral, such as dollars or other crypto assets, and letting the algorithm manage the rest. The collateral gives the peg a floor, but the unbacked share still depends on confidence. If the collateral share is small, a fractional stablecoin behaves much like a seigniorage one in a crisis. For the backed alternative, see asset-backed stablecoins.

Where are algorithmic stablecoins used in DeFi?

In DeFi, algorithmic stablecoins are used as trading pairs, as collateral in lending pools, and as the payout token in yield strategies. A trading pair needs a stable side so that traders can price assets without moving in and out of a dollar-backed token, and an algorithmic stablecoin can fill that role without a bank.

Lending protocols accept them as collateral when the peg looks reliable, and yield farms pay rewards in them because they can be minted on demand. That minting is also the risk: a yield strategy that pays out a token the protocol creates for free can look profitable until the token's price falls.

After the 2022 failures, most large DeFi protocols reduced their exposure. Algorithmic stablecoins are now a smaller share of DeFi, used mainly in niche pools and experimental strategies, while dollar-backed stablecoins handle most trading and lending volume.

Why do algorithmic stablecoins lose their peg?

Algorithmic stablecoins lose their peg when confidence breaks. The peg is a promise enforced by code, and the code only works if traders keep arbitraging the price back. Once enough traders decide the promise will not hold, they sell, the price falls, and the mechanism mints more tokens, which makes the fall worse. That loop is called a death spiral.

Three conditions make a spiral likely. First, thin liquidity: if few buyers are willing to step in, a modest sell order moves the price a long way. Second, a companion token that is itself falling, so each redemption dilutes it further. Third, a large share of the supply locked in yield strategies that unwind at once when the peg slips.

None of these is a bug in the usual sense. The mechanism does what it was designed to do; the design assumes demand will return. When it does not, the protocol has no reserves to defend the peg, and the token falls until it finds buyers at a much lower price or none at all.

Example: a death spiral in numbers

Example (hypothetical): a seigniorage stablecoin has 10 million tokens in circulation, each meant to be worth one dollar. Its companion token trades at 10 dollars. A holder redeems 1,000 stablecoins and receives 100 companion tokens, worth 1,000 dollars at the current price.

Now suppose confidence falls and the companion token drops to 5 dollars. The same 1,000-stablecoin redemption now mints 200 companion tokens instead of 100. The extra supply pushes the companion token down to 2 dollars, so the next redemption of 1,000 stablecoins mints 500 companion tokens.

Each round mints more tokens and pushes the price lower, while the stablecoin itself slips further below one dollar because nobody wants to hold it. The numbers show why the spiral is hard to stop: the mechanism that is supposed to defend the peg is the same one creating the extra supply. A reserve-backed token can buy back its own supply; an unbacked one cannot.

What are the common mistakes?

The most common mistakes are treating an algorithmic stablecoin as if it were a dollar, ignoring the companion token, and trusting a high yield without asking where it comes from.

  • Treating the peg as a guarantee. The peg is a target enforced by incentives, not a promise backed by assets. It can break, and it has broken.
  • Ignoring the companion token. In a seigniorage model, the companion token carries the risk. If its price is falling, the stablecoin is already in trouble.
  • Chasing the yield. A strategy paying high returns in a token the protocol mints for free is not free money. The yield is paid in the token whose price is at risk.
  • Holding a large share in one pool. If the peg slips, every holder tries to exit at once. Keep exposure small enough to exit without moving the price.
  • Skipping the audit. A bug in the minting or redemption code can break the peg faster than any market move. Check that the contracts were reviewed.

How do you assess an algorithmic stablecoin before using it?

You assess an algorithmic stablecoin by checking its collateral, its companion token, its liquidity and its history — in that order.

  1. Check the backing. Find out what fraction of the supply is backed by real assets and where those assets are held. Zero backing means zero floor.
  2. Look at the companion token. In a seigniorage model, check the companion token's price trend, supply and who holds it. A falling companion token is an early warning.
  3. Measure the liquidity. Check the depth of the largest trading pools. If a modest trade moves the price by more than a few cents, the peg is fragile.
  4. Read the audit. Confirm the minting and redemption contracts were reviewed by an independent firm, and check whether any findings were left unfixed.
  5. Check the history. Has the token ever lost its peg, and for how long? A token that has survived a sharp market fall is a better sign than one that has only traded in calm markets.

Even after these checks, keep the position small. An algorithmic stablecoin can be a useful tool in a DeFi strategy, but it is not a dollar, and it should never be treated as one. For the wider picture, see stablecoin use cases.

If you are new to the sector, start with what DeFi is before putting money into any stablecoin strategy.

Key takeaways

  • Algorithmic stablecoins hold a dollar peg with code and incentives, not with reserves
  • Seigniorage, rebasing and fractional designs all rely on trader confidence to work
  • The main failure mode is a death spiral: falling confidence mints more tokens and pushes the price lower
  • Terra's UST lost its peg in May 2022 and is the main cautionary example
  • Check backing, companion token, liquidity, audit and history — and keep any position small

Frequently asked questions

What is the difference between an algorithmic and an asset-backed stablecoin?

An asset-backed stablecoin holds dollars or other assets in reserve and lets holders redeem one token for one dollar of assets. An algorithmic stablecoin holds little or no collateral and keeps its price by changing supply through code, which works only while traders trust the rules.

Are algorithmic stablecoins still used in DeFi?

Yes, but far less than before 2022. They appear mainly in niche trading pools and experimental yield strategies. Most trading and lending volume now uses dollar-backed stablecoins, which hold reserves.

What is a death spiral in an algorithmic stablecoin?

A death spiral is a loop where falling confidence causes redemptions, redemptions mint more of the companion token, the extra supply pushes its price down, and the lower price makes the next redemption mint even more. The mechanism meant to defend the peg ends up feeding the fall.

Can an algorithmic stablecoin ever be safe?

No stablecoin is risk-free, but fractional designs with a large collateral share and deep liquidity are more robust than unbacked seigniorage designs. Even then, the peg depends on confidence, so the position should stay small.

Why did Terra's UST collapse?

UST used a seigniorage design with LUNA as its companion token. In May 2022, heavy selling broke the peg, redemptions minted LUNA in huge quantities, LUNA's price collapsed, and the mechanism could no longer restore the peg. UST fell to a few cents within days.

Should I hold savings in an algorithmic stablecoin?

No. Savings should sit in assets with reserves behind them or in a bank account. An algorithmic stablecoin is a tool for DeFi trading and yield strategies, not a place to keep money you cannot afford to lose.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a DeFi product and weighing stablecoin options? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Stablecoin Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call