Skip to content

Lesson 92 of 92 · Free Excel Course

Excel · Excel function reference

Excel SLN Function: Straight-Line Depreciation with Examples

How the Excel SLN function calculates straight-line depreciation, with a full schedule (book value), monthly depreciation, DB/DDB/SYD compared and error fixes.

The SLN function calculates straight-line depreciation: it spreads the cost of an asset, such as a van, a machine or a laptop, evenly over the years you expect to use it. You give it what you paid, what you think the asset will be worth at the end and how many periods it will last, and it returns one number: the depreciation for each period. Every period gets the same amount, which is what "straight line" means. SLN is available in Excel for Microsoft 365 (Windows, Mac and the web), Excel 2024, Excel 2021, Excel 2019 and Excel 2016, and works the same way in older versions.

Syntax

=SLN(cost, salvage, life)

All three arguments are required, and there are no defaults.

  • cost: what the asset cost at the start, as a positive number. Include what it took to get it ready to use if your bookkeeper treats that as part of the cost (delivery, set-up).
  • salvage: what you expect the asset to be worth at the end of its life, also called salvage or residual value. It can be 0 if you expect it to be worth nothing.
  • life: the number of periods over which you depreciate it, its useful life. Use years for yearly depreciation or months for monthly; the result is per whatever unit you choose.

SLN is simply (cost - salvage) / life in one function. It returns a positive number, unlike loan functions such as PMT that return a negative one.

Examples

Microsoft's own example. An asset costs $30,000, will be worth $7,500 at the end and lasts 10 years:

A6=SLN(A2,A3,A4)
AB
1DataDescription
2$30,000Cost
3$7,500Salvage value
410Years of useful life
5
6$2,250.00Depreciation for each year
($30,000 - $7,500) / 10 = $2,250 a year, the same result as on Microsoft's SLN page.

A full depreciation schedule. SLN gives one year's figure. A schedule shows what happens over the whole life: the yearly expense, the accumulated depreciation (the running total) and the book value (cost minus accumulated depreciation). Here a delivery van costs $36,000, should sell for $6,000 after 5 years, and the inputs sit in B2:B4:

D7=$B$2-C7
ABCD
1Delivery vanValue
2Cost$36,000.00
3Salvage value$6,000.00
4Useful life (years)5
5
6YearDepreciationAccumulatedBook value
71$6,000.00$6,000.00$30,000.00
82$6,000.00$12,000.00$24,000.00
93$6,000.00$18,000.00$18,000.00
104$6,000.00$24,000.00$12,000.00
115$6,000.00$30,000.00$6,000.00
B7: =SLN($B$2,$B$3,$B$4). C7: =SUM($B$7:B7). D7: =$B$2-C7. Fill all three down to year 5. The last book value equals the salvage value, which is the check that the schedule is right.

To build it:

  1. Type the cost, salvage value and life in B2:B4, and the headings in row 6.
  2. Type 1 to 5 in A7:A11.
  3. In B7 type =SLN($B$2,$B$3,$B$4). The dollar signs keep the inputs fixed as you fill down (see absolute and relative references).
  4. In C7 type =SUM($B$7:B7), and in D7 type =$B$2-C7.
  5. Select B7:D7 and drag the fill handle down to row 11.

On a balance sheet the van shows at cost, less accumulated depreciation, which is exactly how the financial statements project sets up its equipment lines.

Monthly depreciation, and an asset bought partway through the year. Most small-business books are kept by month. Give SLN the life in months and it returns the monthly figure:

B5=SLN(B2,B3,B4)
AB
1Delivery vanValue
2Cost$36,000.00
3Salvage value$6,000.00
4Life (months)60
5Depreciation per month$500.00
6Months owned in year 1 (bought in October)3
7Depreciation in year 1$1,500.00
B4 could also be =5*12. B7 is =B5*B6: only October, November and December count in the first year.

That $500 is the figure to post each month in a ledger like the one in the bookkeeping project. Whether your books count a part-month, a half-year or the full first year is a policy choice, so ask your accountant which convention to use.

SLN compared with DB, DDB and SYD. Excel has three other depreciation functions that front-load the expense. Microsoft lists them as DB (fixed-declining balance), DDB (double-declining balance) and SYD (sum-of-years' digits). Each needs a fourth argument, the period you want. For the same van, year 1 looks like this:

ABC
1MethodFormulaYear 1
2Straight line=SLN(36000,6000,5)$6,000.00
3Fixed-declining balance=DB(36000,6000,5,1)$10,836.00
4Double-declining balance=DDB(36000,6000,5,1)$14,400.00
5Sum-of-years' digits=SYD(36000,6000,5,1)$10,000.00
DB rounds its rate to three decimals (30.1%), so its total over 5 years lands close to, not exactly on, $30,000. SLN, DDB and SYD all spread exactly $30,000.

Straight line is the simplest of the four and the easiest to explain. The accelerated methods can suit assets that lose most of their value early, such as vehicles and computers.

Common errors

ABC
1FormulaResultWhy
2=SLN(36000,6000,0)#DIV/0!Life is 0 or the life cell is empty
3=SLN(36000,"six thousand",5)#VALUE!Text Excel can't read as a number
4=SLN(6000,36000,5)-$6,000.00Cost and salvage swapped
5=SLN(36000,6000,5)$6,000.00Correct, but yearly if you wanted monthly
SLN only has three arguments, so the mistakes are easy to spot once you know them.
  • #DIV/0! SLN divides by life, so a life of 0, or a reference to an empty cell, fails. Check the life cell.
  • #VALUE! One argument is text, often a number pasted with a currency word or typed with a stray space. Retype it as a plain number.
  • A negative result. Salvage is larger than cost, usually because the two were swapped. Cost comes first.
  • Monthly vs yearly. The life unit decides the result unit. A life of 5 gives a yearly figure; to get monthly, use 60.
  • Book value going below salvage. If you fill a schedule past the last year, accumulated depreciation keeps growing. Stop at the useful life, or wrap the expense in =IF(A7>$B$4,0,SLN($B$2,$B$3,$B$4)).

Related functions

Try it yourself

Download the practice workbook. The Practice sheet has Microsoft's $30,000 example, the $36,000 delivery van with an empty 5-year schedule to fill in, and the monthly version. Type your formulas in the yellow cells, then compare with the Answers sheet, where the final book value should equal the $6,000 salvage value.

Frequently asked questions

What is the formula for straight-line depreciation in Excel?

Use =SLN(cost, salvage, life). For a $36,000 van you expect to sell for $6,000 after 5 years, =SLN(36000,6000,5) returns $6,000 a year. It is the same as =(36000-6000)/5: the cost minus what the asset will be worth at the end, spread evenly over its life.

How do I calculate monthly depreciation with SLN?

Give the life in months instead of years. =SLN(36000,6000,5*12) returns $500 a month. The function doesn't know about months or years; it splits the cost into as many equal parts as the life you give it.

How do I work out book value after a few years?

Book value is the cost minus all the depreciation so far. With straight line that's =cost-SLN(cost,salvage,life)*years. After 3 years the $36,000 van is worth =36000-SLN(36000,6000,5)*3, which is $18,000 on the books. At the end of its life the book value equals the salvage value.

What is the difference between SLN and DDB in Excel?

SLN charges the same amount every period. DDB (double-declining balance) charges much more in the early years and less later, but never takes the book value below salvage. For the $36,000 van, year 1 is $6,000 with SLN and $14,400 with =DDB(36000,6000,5,1). Both spread the same $30,000 in total.