How to Calculate the Future Value using Python

You can use the following template in order to calculate the Future Value using Python:

PV = Present Value
r = Interest Rate
n = Number of Periods

FV = PV*(1+r/100)**n
print (FV)

Steps to Calculate the Future Value using Python

Step 1: Gather the data

To start, gather the data for the future value calculations.

For example, let’s use the following data:

  • Present Value (PV) = 3000
  • Interest Rate in % (r) = 5
  • Number of periods (n) = 9

The goal is to derive the future value based on the above data.

Step 2: Get the Future Value using Python

You can use the following template in order to derive the future value using Python:

PV = Present Value
r = Interest Rate
n = Number of Periods

FV = PV*(1+r/100)**n
print (FV)

And this is the complete code to get the future value for our example:

PV = 3000
r = 5
n = 9

FV = PV*(1+r/100)**n
print (FV)

Run the code and you’ll get the future value of 4653.98