Google Sheets DB Function: Syntax, Examples & Tips

The DB function calculates the depreciation of an asset using the declining balance method over a specified period.
Google Sheets
DB(cost, salvage, life, period, [month])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a DB Google Sheets Formula?
  3. A Practical Example
  4. DB Formula
  5. Result of the Formula
  6. Why Use DB?
  7. Key Takeaways:
  8. Example use case

Parameters

cost:
The initial cost of the asset.

salvage:
The salvage value of the asset at the end of its useful life.

life:
The number of periods (usually years) over which the asset is depreciated.

period:
The specific period for which you want to calculate the depreciation.

[month]:
(Optional) The month in which the asset was placed in service; if omitted, it defaults to 12 (the end of the year).

What is a DB Google Sheets Formula?

The DB function in Google Sheets is a financial function used to calculate the depreciation of an asset over a specified period using the declining balance method. This method is particularly useful for businesses that want to account for the decrease in value of their assets over time, allowing for more accurate financial reporting and tax deductions.

In simpler terms, the DB function helps you determine how much value an asset loses each year, which can be crucial for budgeting and financial planning.

A Practical Example

Imagine you are managing the finances of a company that has purchased a piece of equipment:

Equipment Purchase Details:

Asset NameCostSalvage ValueLifespan (Years)
Machine A10,0001,0005

You want to calculate the depreciation expense for the first three years of using Machine A.

DB Formula

To achieve this, you would use the DB function as follows:

Google Sheets
=DB(A2, B2, C2, D2)

In this formula:

  • A2 is the cost of the asset (10,000).
  • B2 is the salvage value (1,000).
  • C2 is the lifespan of the asset in years (5).
  • D2 is the period for which you want to calculate the depreciation (1 for the first year, 2 for the second year, etc.).

Result of the Formula

When you apply the DB formula for the first three years, the output would look like this:

YearDepreciation Expense
11,800
21,440
31,152

This table shows how much value Machine A loses each year based on the declining balance method.

Why Use DB?

The DB function is beneficial because it provides a straightforward way to calculate depreciation, allowing businesses to reflect the true value of their assets over time. This method is often preferred for assets that lose value more quickly in the earlier years of their lifespan.

Key Takeaways:

  • DB Function: A financial function that calculates depreciation using the declining balance method.
  • Accurate Reporting: Helps businesses account for asset value loss, improving financial reporting.
  • Useful for Budgeting: Provides essential data for budgeting and tax deductions.
  • Common Use Cases: Ideal for asset management, financial analysis, and accounting.

The DB function is an essential tool for anyone managing assets in Google Sheets, providing a powerful way to enhance financial analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a sales database where Column A lists product IDs and Column B contains sales figures. Use the DB formula to calculate the depreciation of each product over time, allowing for quick analysis of asset value and informed decision-making on inventory.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.