Straight-Line Depreciation Formula in Excel and Sheets

Calculate straight-line depreciation with SLN, build a yearly book-value schedule, and prorate the first year when an asset is purchased mid-year.

本文目錄

A fictional $14,800 espresso machine with a $2,200 salvage value and a six-year life should lose the same amount each year. In Google Sheets, =SLN(14800,2200,6) returns $2,100.00 under $#,##0.00, matching (14800-2200)/6. The figures below were measured in Google Sheets; Excel was not run.

Enter this sample in A1:D2. Format B2, C2, and the result cells as $#,##0.00.

AssetCostSalvageLife
Espresso machine1480022006

In E2:

=SLN(B2,C2,D2)
=(B2-C2)/D2

Both return 2100, which displays as $2,100.00. The depreciable amount is $12,600.00, and six equal years of $2,100.00 use it up. SLN returns that full-year amount. It does not read a placed-in-service date, and it does not stop writing depreciation once the book value reaches salvage.

Year-by-year book values for the espresso machine

SLN does not reduce the book value for you. In A6:D6 enter Year, Depreciation, Accumulated, and Ending book value. Starting in row 7:

=SLN($B$2,$C$2,$D$2)
=SUM($B$7:B7)
=$B$2-C7

Fill those down through year 6. Under $#,##0.00:

YearDepreciationAccumulatedEnding book value
1$2,100.00$2,100.00$12,700.00
2$2,100.00$4,200.00$10,600.00
3$2,100.00$6,300.00$8,500.00
4$2,100.00$8,400.00$6,400.00
5$2,100.00$10,500.00$4,300.00
6$2,100.00$12,600.00$2,200.00

Year 6 lands on the salvage value. If you copy the same annual formula into year 7, Sheets still returns $2,100.00. Accumulated depreciation becomes $14,700.00 and the book value falls to $100.00, which is $2,100.00 below salvage. I would stop the schedule after year 6, or cap the last period, rather than let SLN keep going.

Mid-year placement uses a month fraction

If the machine is placed in service on April 1, a common way to split that full year across calendar years is to take nine-twelfths in the first calendar year and the remaining three-twelfths in a seventh calendar year:

=SLN($B$2,$C$2,$D$2)*9/12
=SLN($B$2,$C$2,$D$2)*3/12

Those return $1,575.00 與 $525.00. Under $#,##0.00, the seven calendar years are:

Calendar yearMonthsDepreciationEnding book value
Year 19$1,575.00$13,225.00
Year 212$2,100.00$11,125.00
Year 312$2,100.00$9,025.00
Year 412$2,100.00$6,925.00
Year 512$2,100.00$4,825.00
Year 612$2,100.00$2,725.00
Year 73$525.00$2,200.00

The months add to 72, which is still six full years, and the depreciation adds to $12,600.00. The book value again finishes at $2,200.00. This is a worksheet convention for spreading one SLN year, not tax advice.

Zero life, a blank cell, and the word six

A useful life of 0, a genuinely blank life cell, and =SLN(14800,2200,"") each return #DIV/0!. The Sheets message is Function SLN parameter 3 cannot be zero. A blank is treated as zero. For other zero denominators, see how to fix #DIV/0! errors.

The text six is different. =SLN(14800,2200,B35) when B35 holds that word returns #VALUE!, Function SLN parameter 3 expects number values. But 'six' is a text and cannot be coerced to a number. The numeral typed as text, 6, is coerced: the same formula returned $2,100.00. Check the formula bar if a life cell looks numeric but is not behaving as you expect.

A non-integer life is used as entered. =SLN(14800,2200,6.5) returned 1938.4615384615386, displayed $1,938.46 under $#,##0.00, which is $12,600.00 divided by 6.5, not by 6.

Negative depreciation, and a seventh year without a cap

SLN does not reject a salvage value above cost. =SLN(14800,16000,6) returns -200, displayed -$200.00. If salvage equals cost, =SLN(14800,14800,6) returns 0, displayed $0.00. With salvage 0, =SLN(14800,0,6) returns 2466.6666666666665, displayed $2,466.67.

A negative life also does not error. =SLN(14800,2200,-6) returns -2100, displayed -$2,100.00, the negated annual amount. If you see a negative depreciation, check the life sign and whether salvage is above cost before you post the number.

SLN compared with DDB on the same van

The DDB versus VDB walkthrough uses a fictional $25,000 delivery van with a $1,200 salvage value and a five-year life. On that asset, =SLN(25000,1200,5) returns $4,760.00, and five years of that amount land exactly on salvage. DDB on the same figures left $1,944.00 on the books, $744.00 above salvage. Use SLN when the policy is equal amounts each year; use DDB or VDB when the policy front-loads the expense.

If you want a schedule without building the sheet, use the straight-line depreciation calculator. Its default inputs are not the espresso-machine sample in this article.

Oscar

寫 Excel 與 Google Sheets 的公式和排錯。

Google Sheets, 30 November 2026, new private unshared spreadsheet (locale already en_US at creation and left unchanged, 1000-row grid, timezone set to America/New_York only on this file). Formulas were entered as user input through the Sheets API. Error text was read from the Sheets API errorValue.message field. Currency displays were read under $#,##0.00. Main sample: cost 14800, salvage 2200, life 6. SLN(B2,C2,D2) and (B2-C2)/D2 both returned 2100, displayed $2,100.00, and compared equal. The six-year schedule used $2,100.00 each year. Accumulated depreciation and ending book values were $2,100.00 / $12,700.00; $4,200.00 / $10,600.00; $6,300.00 / $8,500.00; $8,400.00 / $6,400.00; $10,500.00 / $4,300.00; and $12,600.00 / $2,200.00. Year 7 of the same annual amount left accumulated depreciation of $14,700.00 and a book value of $100.00. An April 1 proration of SLN*9/12 returned $1,575.00; years 2-6 were $2,100.00 each; the final three months returned $525.00. The seven calendar years totaled 72 months and $12,600.00, and the ending book value was $2,200.00. SLN(25000,1200,5) returned 4760, displayed $4,760.00, and 25000-4760*5 equalled the $1,200.00 salvage. SLN with life 0, a genuine blank life, and SLN(14800,2200,"") each returned #DIV/0!, "Function SLN parameter 3 cannot be zero." SLN(14800,2200,-6) returned -2100, displayed -$2,100.00. SLN(14800,16000,6) returned -200, displayed -$200.00. SLN(14800,0,6) returned 2466.6666666666665, displayed $2,466.67. SLN(14800,14800,6) returned 0, displayed $0.00. Life entered as the text six returned #VALUE!, "Function SLN parameter 3 expects number values. But 'six' is a text and cannot be coerced to a number." Life entered as the text 6 (ISTEXT TRUE, TYPE 2) was coerced and SLN returned 2100, displayed $2,100.00. SLN(14800,2200,6.5) returned 1938.4615384615386, displayed $1,938.46. Excel was not run.

本主題下一篇:表格錯誤與動態陣列 Percent Error Formula in Excel and Google Sheets