VDB Function (Gnumeric)
Calculate interval depreciation with Gnumeric VDB, including declining balance, the optional straight-line switch and salvage constraints.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
VDB calculates depreciation over an interval of an asset’s life using a declining-balance method, with an optional switch to straight-line depreciation. It returns the depreciation amount for the requested interval, not the asset’s remaining book value. This guide explains worksheet arithmetic; it does not determine which depreciation policy is permitted for a particular accounting or tax purpose.
Syntax and units
VDB(cost, salvage, life, start_period, end_period, [factor], [no_switch])
cost is the initial value, salvage the residual value, and life the number of periods. start_period and end_period are interval boundaries measured in the same period units as life. The first full period runs from 0 to 1.
factor defaults to 2, producing the double-declining rate before any switch or salvage limit. no_switch defaults to FALSE. With FALSE, Gnumeric can switch to straight-line depreciation when that provides the larger depreciation; TRUE disables that switch. Supply positive life and factor values and a consistent nonnegative residual-value policy.
Worked example: a five-period asset
For cost 1000, salvage 100, and life 5:
| Formula | Native depreciation |
|---|---|
=VDB(1000,100,5,0,1) |
400 |
=VDB(1000,100,5,1,2) |
240 |
=VDB(1000,100,5,0,5) |
900 |
=VDB(1000,100,5,0,5,2,TRUE) |
900 |
The initial declining rate is 2/5, or 40%. The first period’s depreciation is 1000×0.4=400, leaving 600. The second is 600×0.4=240. The total allowable reduction from cost to salvage is 900 in this example.
The equal full-life results in the last two rows do not imply that the switch option is irrelevant for every input. The timing of depreciation and the final balance depend on the complete parameter set.
Advanced use: build a period schedule
Keep cost, salvage, and life in fixed input cells. Make a schedule with start boundaries 0,1,2,… and end boundaries 1,2,3,…, then reference those cells in VDB. Absolute references to the shared assumptions prevent them from shifting when the formula is copied down.
Reconcile the schedule total with a whole-interval VDB calculation and keep a separate book-value column if needed. An interval amount and a cumulative amount answer different questions; do not subtract each cumulative result repeatedly from cost.
Fractional interval boundaries are part of the function’s design, but the native examples here cover whole periods. The release notes record a partial-period fix in 1.12.36, so historical partial-period behavior should not be inferred from a current whole-period example.
Errors and troubleshooting
=VDB(1000,100,5,2,1) returns #NUM! because the end precedes the start. =VDB(1000,100,5,0,6) returns #NUM! because the requested interval exceeds life. The callback also rejects negative start periods, negative cost, salvage greater than cost, and nonpositive factors.
Validate assumptions independently rather than treating the absence of an error as approval of an accounting policy. Use consistent time units and avoid mixing a life measured in years with boundaries measured in months without deliberate conversion.
Version and verification
Official release notes introduce VDB in Gnumeric 1.1.7 and record a partial-period correction in 1.12.36. The six displayed cases were recalculated in 1.12.57 under C.UTF-8 on 17 October 2026. No GUI or comprehensive fractional-period certification is claimed; no retirement is established.