The DB function in Google Sheets calculates the depreciation of an asset for a specified period using the arithmetic declining balance method. Its syntax is DB(cost, salvage, life, period, [month]), where cost is the initial amount, salvage is the value at the end of the life, life is the number of periods, period is the period for which you want depreciation, and the optional month is the number of months in the first year (defaults to 12).
What Is the DB Function Used For?
The DB function is part of Google Sheets’ financial function set, designed for accounting and asset management. It helps businesses and individuals calculate how much an asset loses value each year, which is essential for tax reporting, budgeting, and financial planning. The arithmetic declining balance method applies a fixed depreciation rate each period, but the rate is applied to the asset’s book value at the beginning of the period, so the depreciation amount decreases over time. This contrasts with straight-line depreciation, which spreads the cost evenly.
For example, if you buy a machine for $10,000 with a salvage value of $1,000 after 5 years, the DB function can tell you the depreciation for year 3. The rate is calculated internally based on the cost, salvage, life, and optional month, and it is not directly visible in the function output, but you can derive it with a separate formula if needed.
How to Use the DB Function in Google Sheets
To use the DB function, open a Google Sheet and enter the formula in a cell. The function requires the arguments in the order shown in the syntax. Here’s a step-by-step example:
- Assume cell A1 contains the cost (e.g., 10000), B1 contains salvage (e.g., 1000), C1 contains life (e.g., 5), and D1 contains the period (e.g., 3).
- In cell E1, type:
=DB(A1, B1, C1, D1). - Press Enter. The result will be the depreciation for year 3, which for this example is approximately $1,382.40 (calculated as: year 1 depreciation = 10000 * 0.369 = 3690, book value = 6310; year 2 = 6310 * 0.369 = 2328.39, book value = 3981.61; year 3 = 3981.61 * 0.369 = 1469.21, but the actual rate used by Sheets may differ slightly due to rounding; the exact result depends on the internal rate calculation).
If the asset is acquired partway through the first year, you can include the month argument. For instance, if you bought the machine in July (6 months into the year), use =DB(A1, B1, C1, D1, 6). This adjusts the first year’s depreciation proportionally, and the remaining years are calculated on the full year basis.
Understanding the Arithmetic Declining Balance Method
The arithmetic declining balance method is a form of accelerated depreciation. The depreciation rate is calculated as: rate = 1 - ((salvage / cost) ^ (1 / life)) when the month is 12. For a cost of 10000, salvage 1000, and life 5, the rate is 1 - (0.1 ^ 0.2) ≈ 0.369. This rate is applied to the book value at the start of each period. The method is “arithmetic” because the rate is constant, but the depreciation amount declines linearly with the book value. This is different from the double-declining balance method, which uses a rate that is a multiple of the straight-line rate and often ignores salvage value until the end.
In Google Sheets, the DB function handles the rate calculation internally. If you need to see the rate, you can compute it manually in a cell using the formula: =1-((salvage/cost)^(1/life)), but note that this only works when month is 12. For partial first year, the calculation is more complex, and it’s safer to rely on the function.
Common Errors and How to Fix Them
When using DB, you might encounter errors. Here are common issues:
- #VALUE! – This occurs if any argument is non-numeric. Ensure all cells contain numbers, not text.
- #NUM! – This happens if cost is negative, salvage is negative, life is zero or negative, or period is less than zero or greater than life (when month is 12). Check your inputs.
- Wrong period result – If you get a depreciation for year 1 that seems too high or too low, check whether the optional month is appropriate. For assets purchased at the start of the year, omit the month argument or set it to 12.
Also, note that the DB function assumes depreciation stops when the book value reaches salvage. If the period exceeds the life, the function returns #NUM! because the asset is fully depreciated.
DB vs. Other Depreciation Functions in Google Sheets
Google Sheets offers several depreciation functions. The most common are:
- SLN – Straight-line depreciation, which gives an equal amount each period. Syntax:
SLN(cost, salvage, life). - DDB – Double-declining balance method, which uses a higher rate and often results in larger depreciation early on. Syntax:
DDB(cost, salvage, life, period, [factor]). - SYD – Sum-of-years’ digits method, which also accelerates depreciation but in a different pattern. Syntax:
SYD(cost, salvage, life, period). - DB – The arithmetic declining balance, which is a middle ground between straight-line and double-declining. It’s useful when you want a constant rate but still want more depreciation in early years.
Choose DB when you need a fixed rate that declines gradually, but not as aggressively as DDB. For example, if you have a vehicle that loses value quickly but not as fast as a computer, DB might be appropriate.
Real-World Example with Partial Year
Suppose a company buys a delivery van for $30,000 on October 1, 2023. The salvage value is $5,000, and the useful life is 6 years. The first fiscal year has only 3 months of use (October, November, December). To calculate depreciation for the first year (period 1), use: =DB(30000, 5000, 6, 1, 3). The function will compute a rate based on the full life, then adjust the first year’s depreciation to 3/12 of the full-year amount. For subsequent years (periods 2 through 6), you would use month 12 (or omit it) because the asset is used for the full year. This is a common scenario in accounting, and the DB function handles it seamlessly.
Frequently Asked Questions
Can I use DB for monthly depreciation?
Yes, but you need to set the life in months and the period in months. For example, if an asset has a life of 5 years (60 months), set life to 60 and period to the month number (1 to 60). The function will calculate monthly depreciation using the same declining balance method. However, note that the rate is based on the life in months, so the depreciation per month will be smaller.
What is the difference between DB and DDB?
DB uses a fixed rate that is derived from the cost, salvage, and life, and it ensures the book value reaches salvage at the end of life. DDB uses a rate that is a multiple of the straight-line rate (default factor 2), and it does not automatically factor in salvage value until the later periods, sometimes requiring a switch to straight-line to hit salvage. DB is often simpler because it always ends at salvage.
Why does my DB result differ from Excel’s DB?
Google Sheets and Excel both implement the same arithmetic declining balance method, but there can be slight differences due to rounding in the internal rate calculation. In most cases, the results are identical to several decimal places. If you see a significant difference, double-check your arguments and ensure both are using the same optional month parameter.
Can I use DB for assets that appreciate in value?
No, DB is for depreciation only. If an asset increases in value, you would not use a depreciation function. Instead, you might track the fair market value separately. The DB function requires salvage to be less than or equal to cost, otherwise it returns an error.
Is the DB function available in Google Sheets mobile apps?
Yes, the DB function works in the Google Sheets mobile apps for Android and iOS, as long as you have an internet connection. The formula entry is the same as on the web version.
Alternatives and When to Avoid DB
If you need a simpler calculation, use SLN. If you want maximum depreciation early, use DDB. If you need to match tax rules that require a specific method (like MACRS in the US), DB may not be appropriate because MACRS has its own tables. In such cases, you might manually input depreciation amounts or use a custom formula. Also, avoid DB if your asset’s salvage value is zero, because the rate calculation would involve dividing by zero (actually, the formula uses salvage/cost, which is 0, and raising 0 to a power may cause errors). In that case, consider using a different method or set salvage to a small positive value.
Related
- ACCRINTM in Google Sheets: Accrued Interest at Maturity
- Google Sheets SUMIFS Wildcard: How to Use It
- How to Capitalize All in Excel: 4 Quick Ways
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- T-SQL Generate Random Number: RAND, NEWID, and MoreTo generate a random number in T-SQL, use the RAND() function for a decimal between 0 and 1,…
- Excel Worksheet vs CSV: Key Differences and When to Use EachAn Excel worksheet is a grid of cells inside an Excel workbook, while a CSV file is a…
- Excel Attendance File to Print: Set Up and Print ItTo print an Excel attendance file clearly, open it in Excel for Microsoft 365 on Windows, select the…
- Merge Cells in Google Sheets: Shortcut and Steps ExplainedGoogle Sheets does not provide a dedicated default keyboard shortcut that merges selected cells in one keystroke. In…
- Design a Budget Spreadsheet in Excel: A Practical GuideTo design a useful budget spreadsheet in Microsoft Excel for Microsoft 365 on Windows, make a monthly table…
- Excel Data Validation Custom Lists: Setup and TipsIn Excel for Microsoft 365 on Windows, create a custom drop-down by selecting the cells, choosing Data >…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.