How to Calculate APY in Excel and Google Sheets
Calculate APY from APR with EFFECT or a compound formula, convert APY back to APR, and annualize a no-deposit statement without multiplying by 12.
本文目录
A 4.50% APR savings offer with monthly compounding is not the same as a 4.59% APY offer until you convert one of them. In Google Sheets, typing 4.5 instead of 4.5% made that conversion look like 4467.01%. The figures below were measured in Google Sheets. Excel was not run.
With the nominal APR in B2 as 4.5% 或 0.045, and 12 compounding periods in C2:
=EFFECT(B2,C2)
=(1+B2/C2)^C2-1
Both return 0.04593982504058958. Formatted as 0.00%, the cell displays 4.59%.
Enter 4.5% or 0.045, not 4.5
If B2 holds the number 4.5 and is formatted as a regular number, Sheets treats it as 450%, not 4.5%. =EFFECT(B2,12) then returns 44.67014368834498, which displays as 4467.01% under 0.00%.
These three entries are not interchangeable:
| Entry | Stored value | EFFECT with 12 periods, 0.00% |
|---|---|---|
4.5% | 0.045 | 4.59% |
0.045 | 0.045 | 4.59% |
4.5 | 4.5 | 4467.01% |
The first two are the 4.5% rate. Changing the display of 4.5 to Percentage does not divide it by 100; it displays 450.00%, and the EFFECT result stays 4467.01%. Check the formula bar: a 4.5% rate should show 0.045 或 4.50%, not 4.5.
Compare the compounding schedules
I would put the offers in a small comparison sheet before choosing one. These fictional products use different compounding schedules, so the APR figures alone do not rank them.
Enter this sample in A1:C6. Format B2:B6 as percentages.
| Account | APR | Periods per year |
|---|---|---|
| Harbor Online Savings | 4.50% | 12 |
| Pine Digital Savings | 4.55% | 12 |
| Summit 12-Month CD | 4.60% | 4 |
| Valley Credit Union Share | 4.40% | 365 |
| Cedar Fixed Savings | 4.70% | 1 |
In D1, enter APY. In D2:
=EFFECT(B2,C2)
Fill that down through D6, and format D2:D6 as 0.00%.
| Account | APY (0.00%) |
|---|---|
| Harbor Online Savings | 4.59% |
| Pine Digital Savings | 4.65% |
| Summit 12-Month CD | 4.68% |
| Valley Credit Union Share | 4.50% |
| Cedar Fixed Savings | 4.70% |
The usual period counts are 1 (annual), 4 (quarterly), 12 (monthly), and 365 (daily). More frequent compounding raises the effective yield when the nominal rate is positive, but the gap is small at a normal savings rate. The same 4.5% nominal rate compounded daily is 0.046024958498606106, which displays as 4.60%, only eight thousandths of a percentage point above the monthly 4.59%.
Microsoft documents that Excel’s EFFECT truncates the periods-per-year argument to an integer. That was not run in Excel. In this Google Sheets file, =EFFECT(0.045,12.9) 与 =EFFECT(0.045,12.1) both matched =EFFECT(0.045,12). =EFFECT(0.045,13) returned a slightly higher value, 0.04594658110884575.
The manual compound formula
EFFECT is a short way to write:
APY = (1 + APR / n)^n - 1, where n is the number of compounding periods in a year.
For Harbor, in E2:
=(1+B2/C2)^C2-1
It returns the same 0.04593982504058958 as =EFFECT(B2,C2), and the same 4.59% display. I would keep this manual formula in a comparison sheet because it shows the compounding, and it does not depend on knowing the EFFECT function name.
Do not multiply the result by 100. Leave it as a decimal and apply Percentage formatting. Multiplying the 4.59% APY by 100 and then applying 0.00% displayed 459.40%.
Continuous compounding with EXP
If a calculation assumes interest compounds continuously, use:
=EXP(B2)-1
With 4.5% in B2, the result is 0.04602785990871694, which displays as 4.60%. That is the limit as the number of periods grows, a hair above daily compounding of the same rate. For an ordinary savings account, use the bank’s actual schedule rather than assuming continuous compounding.
Convert an advertised APY back to APR
When one offer quotes APY and another quotes APR, convert them to the same type before comparing. NOMINAL goes from effective annual rate back to a nominal APR:
=NOMINAL(D2,C2)
On Harbor’s APY with 12 periods, this returns 0.04499999999999904, which displays as 4.50%. The round trip =EFFECT(NOMINAL(D2,C2),C2) matches the original APY.
APY from a statement balance
A bank statement can give you an annualized yield if there were no deposits or withdrawals in the period.
| Cell | Description | Value |
|---|---|---|
| A2 | Starting balance | 10,000 |
| A3 | Ending balance | 10,038 |
| A4 | Days held | 30 |
=(A3/A2)^(365/A4)-1
The result is 0.04722699327939206, which displays as 4.72% under 0.00%. The formula compounds the actual 30-day growth over a 365-day year.
A one-month interest figure multiplied by 12 is not APY. Here, (A3/A2-1)*12 returns 0.0456, which displays as 4.56%. That is simple annualization, and it is not the same number.
This balance formula needs the starting and ending amounts to be the same account, with no deposits or withdrawals, and with the 365-day convention you chose. Mid-period cash flows break it because the ending balance is no longer growth on the starting balance alone. For uneven cash flows, a cash-flow return such as XIRR, using the actual dates and amounts, is the next tool; I did not run XIRR on a deposit-and-withdrawal sample here. The percentage change formula covers the simple change between two balances.
When EFFECT returns #NUM! or #VALUE!
Microsoft documents that a nominal rate less than or equal to zero, or a periods-per-year argument below 1, produces #NUM! in Excel, and that a non-numeric value can produce #VALUE!. Those Excel messages were not measured here. In this Google Sheets file:
=EFFECT(-0.045,12)
returns #NUM! with Function EFFECT parameter 1 value is -0.045. It should be greater than 0.
=EFFECT(0.045,0)
returns #NUM! with Function EFFECT parameter 2 value is 0. It should be greater than or equal to 1. The same message appeared for =EFFECT(0.045,0.9), because Sheets truncated 0.9 to 0 before the check. A zero rate, a genuine blank, and EFFECT("",12) all returned #NUM! with Function EFFECT parameter 1 value is 0. It should be greater than 0.
A text rate is not automatically #VALUE!. EFFECT of the text 4.5% returned the same 4.59% APY as the number 0.045. EFFECT of the text 4.5 returned 4467.01%, the same as the number 4.5. Non-numeric text does fail:
=EFFECT("hello",12)
returns #VALUE! with Function EFFECT parameter 1 expects number values. But 'hello' is a text and cannot be coerced to a number.
Check the stored rate and a positive whole-number period count before changing the formula. Other #NUM! causes are in the #NUM! error guide.
For a reusable comparison, I would keep =(1+B2/C2)^C2-1 beside the APR and the period count, because the compounding is visible. EFFECT is the shorter equivalent when the inputs are valid. APY is the fairer way to compare savings offers, because it includes compounding and APR does not.
You can also use the APY calculator to check a rate without building a sheet, or the compound interest calculator to see how a balance grows. These formulas do not include fees, taxes, or early-withdrawal rules.