DeFi Research

How to Calculate APY: A Simple Guide for 2026

Learn how to calculate APY with our simple guide. Understand the formula, compare compounding periods, and see how APY works in both banking and DeFi.

You've probably seen this before: one account shows an interest rate, another shows APY, and a DeFi app flashes an even bigger yield number that looks hard to compare. At that point, individuals typically respond in one of two ways. They either pick the biggest number, or they give up and assume the math is too annoying to matter.

It does matter. If you understand how to calculate APY, you stop comparing products on marketing language and start comparing them on what your money can earn. That's useful for a plain savings account, a CD, or a more complicated crypto product where “yield” can mean several different things.

The good news is that APY math is much simpler than it first appears. Once you understand what's being compounded, how often it's being compounded, and what costs might reduce the result, you can read yield claims with a much sharper eye.

Table of Contents

What APY Really Tells You About Your Money

You move $1,000 into two accounts that both advertise 5% returns. A year later, the totals are not always the same. That gap is the whole reason APY matters.

APY, or annual percentage yield, answers a practical question: how much could your money grow over a year once earnings are added back in and start earning too? For a savings account, that makes APY a better comparison tool than a headline rate alone, because it points closer to the result you may see on your balance.

A simple analogy helps. APY works like a snowball rolling downhill. The first layer is your original deposit. Then returns stick to it. If those returns stay in the account, the next round builds on a slightly bigger base.

That sounds straightforward in a bank account. In crypto and DeFi, it gets trickier fast.

A posted APY in DeFi can be based on assumptions that change by the hour, such as token rewards, fluctuating prices, or whether you manually reinvest rewards at all. So APY is not just a math term. It is also a credibility test. You are asking two questions at once: "What does the formula say?" and "What conditions have to stay true for this number to mean anything?"

That is why APY is useful but not self-explanatory. It gives you a common yardstick for comparing products, yet the label can hide very different mechanics underneath. A bank savings account usually follows fixed rules. A DeFi pool may depend on variable emissions, fees, and market behavior. If you already use market context to judge crypto opportunities, tools like these indicators for crypto trading can help you judge whether a flashy yield figure matches the broader setup.

One practical takeaway is enough for now: APY is the number that tries to translate "rate plus compounding" into "what your money may earn over a year." The math comes next. The judgment call, especially in DeFi, matters just as much.

The Core APY Formula for Simple Compounding

Two accounts can advertise the same annual rate and still leave you with different amounts at the end of the year. The difference is usually hidden in one detail: how often the interest gets added back to your balance.

That is what the APY formula is measuring.

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

Why APY and APR aren't the same

APR is the stated yearly rate. APY is the yearly result after compounding is included. That distinction sounds small, but it changes what you earn.

Here is the formula in plain English:

  • r is the annual rate written as a decimal
  • n is how many times interest compounds in a year
  • r/n is the rate for each compounding period
  • (1 + r/n) means each period slightly increases the balance
  • ^n repeats that growth across the full year
  • − 1 strips out the starting principal so only the yield remains

A simple way to read it is this: split the annual rate into smaller pieces, apply each piece to a balance that keeps getting a little bigger, then measure the total gain after one year.

If compounding happens only once per year, APY and APR are the same. If it happens monthly, daily, or on some other schedule, APY ends up a bit higher because each interest credit starts earning interest too.

That is the whole engine.

Breaking down the formula in plain English

Compounding works like stacking blocks. The first layer is your original deposit. Each new layer of interest sits on top of the last one, so the base gets taller before the next layer is added.

A quick walkthrough makes the math less abstract:

  1. Start with the annual rate.
  2. Divide it by the number of compounding periods.
  3. Add that periodic rate to 1.
  4. Raise the result to the number of periods in the year.
  5. Subtract 1 to get the annual yield.

For example, if a savings account pays a 4% annual rate and compounds daily, you would plug in r = 0.04 and n = 365. The result is slightly above 4%, because daily compounding gives interest many chances to build on itself.

That same logic is why APY is useful for comparisons. Two products may show the same headline rate, but the one that compounds more frequently usually has the higher APY.

This short walkthrough can help if you want to see the formula explained visually:

One caution matters here, especially if you also compare crypto or DeFi yields. The formula assumes the rate and compounding pattern stay consistent for the full year. In a bank account, that assumption is often reasonable. In DeFi, it may not be. A posted APY can rely on reward rates, token prices, and reinvestment habits that change long before the year is over.

If a product advertises an APY but does not clearly explain the compounding schedule, the source of the yield, or whether reinvestment is automatic, treat the number as a starting point for questions, not a finished answer.

Calculating APY with Worked Examples

The easiest way to learn how to calculate APY is to run the numbers yourself with the same annual rate and different compounding schedules.

To stay within what we can verify, I'll use the exact comparison style allowed here: a 5% APR and different values for n. The goal isn't to obsess over tiny decimal differences. It's to see how compounding frequency changes the final APY even when the stated APR stays the same.

A bank-style example from actual interest earned

Before the comparison table, here's a useful real-world style example. Chase shows that if a $1,000 certificate of deposit earns $30 in interest over 365 days, you divide $30 by $1,000 to get 0.03, add 1 to get 1.03, and the annualized result is 3.00% APY (Chase's APY example).

That example is helpful because it shows APY from the other direction. Instead of starting with a formula and a rate, you start with actual earnings over a year and translate them into an annual yield.

Here's the comparison framework for a 5% APR:

A comparison table you can reuse

Compounding Frequency Calculation (n) Resulting APY
Monthly 12 Use (1 + r/n)^n − 1 with r = 0.05 and n = 12
Weekly 52 Use (1 + r/n)^n − 1 with r = 0.05 and n = 52
Daily 365 Use (1 + r/n)^n − 1 with r = 0.05 and n = 365

If you plug those into a calculator or spreadsheet, you'll see the same pattern every time. Monthly compounding produces a lower APY than weekly compounding, and weekly compounding produces a lower APY than daily compounding.

That doesn't mean more frequent compounding always changes your life. Often the difference is modest. But it does mean the products are not identical, even when they advertise the same APR.

Try the monthly version by hand:

  1. Convert the APR to decimal form: 0.05
  2. Divide by the compounding periods: 0.05 / 12
  3. Add 1
  4. Raise the result to the power of 12
  5. Subtract 1

Do the same process again with 52 and 365, and you'll see the APY inch upward as interest is added more often.

A good learning habit is to calculate APY two ways when possible: from the published rate and from actual interest earned. If those don't line up, dig into the account rules.

Continuous Compounding and Converting APR to APY

Some guides stop at monthly or daily compounding. While this level of detail is often sufficient, there's one more idea that helps when you compare yield claims across products: continuous compounding.

What continuous compounding means

Continuous compounding is the theoretical case where growth is added constantly rather than at set intervals. The usual formula for that is:

APY = e^r − 1

You don't need to memorize it unless you enjoy math. What matters is the intuition. Continuous compounding acts like an upper boundary for what a given nominal rate could produce if compounding became as frequent as possible.

In practice, many retail products won't use that exact setup. But the concept is useful because it shows why compounding frequency matters more in some situations than in others.

Citizens notes a point many readers miss: the difference between compounding schedules can feel tiny in lower-rate environments, but it becomes more noticeable when nominal rates are higher and products use different conventions (Citizens on comparing APY across products).

Useful conversion shortcuts

If you know APR and want APY for a given compounding schedule, use:

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

If you know APY and want to reason backward to the implied periodic growth, you're reversing that same logic. In a spreadsheet, that's usually easier than doing it by hand.

A simple decision rule helps:

  • Same APR, different compounding frequency: compare APY
  • Same APY, different product structures: inspect fees and mechanics
  • APR on one product and APY on another: convert them before deciding

That last step matters more than people expect. Two products can sound similar until one compounds monthly and the other compounds daily. Then the annual result shifts, even if the top-line rate looks familiar.

Don't treat APY as a decoration next to APR. It's the number that translates the compounding schedule into a yearly outcome you can compare.

Special Considerations for APY in DeFi

A DeFi app can show 40% APY at breakfast and a very different number by dinner. That alone should change how you read the label.

In a savings account, APY usually describes a product with fixed rules around interest and compounding. In DeFi, the displayed APY often mixes several moving parts: trading fees, token rewards, changing liquidity conditions, and an assumption about how often rewards get reinvested. The math on the screen may be correct for that moment and still fail to match what lands in your wallet over a year.

Why DeFi APY needs a second look

Bank APY is usually a disclosure figure. DeFi APY is often closer to a projection.

That difference matters because compounding in crypto can depend on actions you must take yourself. If rewards sit unclaimed, they are not compounding. If claiming and reinvesting requires a transaction, gas costs become part of the return. A headline APY can assume a behavior pattern that is expensive, inconvenient, or unrealistic for your position size.

A simple way to frame it is to separate displayed yield from realized yield. Displayed yield is what the dashboard calculates under its assumptions. Realized yield is what you keep after fees, timing, token price changes, and any losses tied to the strategy.

Here are four places where the gap often shows up:

  • Variable yields: Rates can rise or fall with trading volume, borrowing demand, liquidity depth, or incentive programs.
  • Gas costs: Manual compounding can cost enough to erase the benefit of frequent reinvestment.
  • Impermanent loss: LP rewards may look attractive while the overall position still trails holding the tokens directly.
  • Smart contract and protocol risk: A high APY does not compensate you automatically for exploit risk, oracle problems, or governance changes.

If you want a better framework for judging whether a crypto yield opportunity makes sense beyond the top-line rate, this guide to fundamental analysis for cryptocurrencies gives useful context.

How to sanity check a DeFi APY claim

Use the same habit you would use with any investment claim. Ask what assumptions are doing the heavy lifting.

Start with the compounding mechanism. Does the protocol auto-compound inside the product, or does it assume you will harvest and reinvest rewards yourself? Those are very different experiences. One is built into the strategy. The other turns APY into a best-case path that depends on your wallet activity and transaction costs.

Then look at what the yield is made of. A pool paying trading fees in one token and incentive rewards in another can advertise a single APY number, but each piece behaves differently. Fee income depends on real usage. Incentive tokens can drop in price, get reduced, or disappear when a campaign ends.

Liquidity providers need one more layer of caution. A pool can generate eye-catching fee APY while the value of the position suffers from token price divergence. In that case, the APY figure is describing one stream of return, not the full economic result.

A good checklist is short:

  1. What part of the APY comes from fees, and what part comes from token incentives?
  2. Is compounding automatic, manual, or only assumed in the estimate?
  3. How often would I need to reinvest for the quoted APY to be realistic?
  4. Do gas costs make that reinvestment pattern sensible for my position size?
  5. For LP positions, what happens to my total position value if the paired assets move apart?
  6. Could the quoted rate change quickly because it is based on recent activity rather than fixed terms?

In DeFi, APY works best as a scenario you test, not a promise you accept.

When a DeFi dashboard shows a high APY, ask a harder question first. What assumptions about rewards, prices, fees, and reinvestment have to hold for that number to become real?

Building Your Own Simple APY Calculator Workflow

A good APY calculator is less like a fancy finance model and more like a receipt. It should show exactly where the final number came from. If a bank, app, or DeFi dashboard quotes a yield you cannot recreate with a few clear inputs, treat that number as a claim to test, not a fact to accept.

A spreadsheet layout that keeps you honest

Start with a small sheet and keep each input in its own cell. That forces you to separate the parts people often blur together.

Use these fields:

  • Quoted rate
  • Rate type (APR or APY)
  • Compounding periods per year
  • Principal
  • Calculated APY
  • Ending balance
  • Fees, limits, or reinvestment assumptions

If your quoted rate is an APR, the APY cell in Google Sheets or Excel can use:

=(1 + APR_Cell/Compounding_Cell)^Compounding_Cell - 1

Then calculate ending balance with:

=Principal_Cell*(1+APY_Cell)

That setup does two jobs at once. It gives you the math, and it gives you an audit trail. You can see whether a high return comes from the stated rate, frequent compounding, or an assumption that you will keep reinvesting without interruption.

If you like building repeatable checklists for technical tasks, this guide to setting up a test workflow with Ropsten Ethereum uses the same kind of clear, step-by-step structure.

Turn the formula into a decision tool

Here is a simple way to use the sheet.

Say an account shows a 5% APR compounded monthly, and you plan to deposit $1,000. Enter 0.05 for APR, 12 for compounding periods, and 1000 for principal. The spreadsheet converts that into an APY of about 5.12%, then gives you an ending balance of about $1,051.16 after one year.

That is the clean version.

Real life adds friction, which is why your last column matters. A savings account may have balance rules or fees that reduce the amount you keep. In DeFi, the missing pieces are often gas costs, token price swings, and whether rewards are really being reinvested at the pace the headline APY assumes.

A simple workflow for checking APY claims

Use the same sequence every time:

  1. Enter the quoted rate.
  2. Mark whether it is APR or APY.
  3. Record how often compounding happens, or how often the platform assumes you will reinvest.
  4. Add your principal.
  5. Write down any costs, limits, or conditions in a notes field.
  6. Compare the headline result with your more realistic net result.

That last comparison is where the worksheet becomes useful.

For a bank account, the gap may be small. For a DeFi position, the gap can be the whole story. A dashboard can display a strong APY based on reward tokens and frequent reinvestment, while your actual outcome is lower because gas is too expensive for your position size or the reward token falls in value before you compound it.

A simple calculator will not answer every question. It will show you which question to ask next. That is the primary advantage of building your own workflow instead of trusting the first APY number you see.


UBAMM.AI helps DeFi liquidity providers turn messy yield decisions into a more systematic process. If you want a non-custodial approach to active Uniswap v4 liquidity management with automation, monitoring, and performance tracking against HODL, visit UBAMM.AI.