The VBA FV function is listed under the financial category of VBA functions. When you use it in a VBA code, **it returns the future value of a loan or an investment**. In simple words, FV can calculate the future value of an investment or a loan using fixed periodic payments and a fixed rate of interest.

It just works like FV function in the worksheet.

## Syntax

**FV(Rate, Nper, Pmt, [Pv], [Due])**

## Arguments

**Rate**: The rate of interest, per period.**Nper**: The number of periods to pay the loan or investment.**Pmt**: The fixed amount of payment.**[Pv]**: The present value of the loan/investment. (This is an optional argument and if omitted VBA will take 0 by default).**[Due]**: An argument to defines whether the payment is due at the start or the end of the period (This is an optional argument and if omitted VBA will take the end of the period by default).

## Example

To practically understand how to use the VBA FV function, you need to go through the below example where we have written a VBA code by using it:

```
Sub example_FV()
Range("A8") = FV(0.5 / 12, 5 * 12, -1500)
End Sub
```

In the above code, we have used FV to calculate the future value of the investment. We have entered all the values directly into the function and it has returned **380896.7585** as the future value of the investment.

## Notes

- Cash paid out should be supplied as a negative value.
- If “pv” or “PMT” is left blank then it will assume 0.

## Related Functions

DDB | IPMT | IRR | MIRR | NPER | NPV | PMT | PV | RATE | SLN | SYD