Formualizer Docs

DDB

Returns declining-balance depreciation for a period using a configurable acceleration factor.

DDB defaults to the double-declining method (factor = 2) and applies a salvage floor so book value does not fall below salvage.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=DDB(cost, salvage, life, period, [factor])

Arguments

ArgumentTypeRequiredDefault
costnumberRequired—
salvagenumberRequired—
lifenumberRequired—
periodnumberRequired—
factornumberOptional—

Remarks

  • Parameters: cost, salvage, life, period, and optional factor (default 2).
  • Per-period rate is factor / life.
  • period is truncated to an integer before calculation, matching Excel behavior.
  • Result is the period depreciation amount; with valid inputs above it is non-negative.

Error cases

  • Input constraints: cost >= 0, salvage >= 0, life > 0, factor > 0, and 1 <= trunc(period) <= life; violations return #NUM!.

Examples

Apply the default double-declining rate after the first period’s depreciation.

Formula =DDB(1000,100,5,2)

Expected result 240

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use a declining-balance factor of one in place of the default factor of two.

Formula =DDB(1000,100,5,2,1)

Expected result 160

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Apply the double-declining rate to the original cost for the first period.

Formula =DDB(1000,100,5,1)

Expected result 400

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The double-declining schedule starts at period one.

Formula =DDB(1000,100,5,0)

Expected result #NUM!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Default double-declining first period

Formula =DDB(10000, 1000, 5, 1)

Expected result 4000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Using a custom factor

Formula =DDB(10000, 1000, 5, 1, 1.5)

Expected result 3000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Fractional period is truncated to integer

Formula =DDB(10000, 1000, 5, 1.9)

Expected result 4000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

What does the optional factor control?

It sets the per-period declining rate as factor / life; 2 gives double-declining balance.

When does DDB return #NUM!?

Invalid non-positive inputs (life, period, factor), negative cost/salvage, or period > life.

What happens with a fractional period?

period is truncated to an integer before calculation (e.g. 1.9 is treated as 1), matching Excel and DB behavior.

Implementation

Engine source

On this page