# Nominal Interest Rate on Investments - Calculation

This article works on the calculation of the nominal interest rate (NIR) for a known initial investment which amounts to a known future value in a specified period of time.

The nominal rate is usually subdivided for compounding purposes.

The NIR is based on the following formula:

where:

i = nominal interest rate
P = initial investment
T = future value
N = number of compounding periods per year
Y = number of years

The nominal rate is expressed as a yearly rate even though the interest rate used when compounding interest is i/N. This rate will be less than the effective interest rate when the interest is compounded more than once a year. That is because the nominal rate stated doesn’t take into account interest compounded on interest earned in earlier periods of each year.

The following presentation shows the main concepts and examples. After this brief presentation, I show you the coded details.

This is our simple Matlab code to calculate the NIR formula above:

function it = nominal_interest_rate(p, t, n, y)
it = n*((t/p)^(1/(n*y))-1)*100;

We create another script to test and drive the above m-file:

clc; clear; format bank

p = input('Enter principal: ');
t = input(
'Enter total value: ');
y = input(
'Enter number of years: ');
n = input(
'Enter number of compounding periods per year: ');

int_rate = nominal_interest_rate(p, t, n, y)

### Example 1 - Investment:

Jean invests \$945 in a savings bank. Four and a half years later her investment amounts to \$1309.79. If interest is compounded monthly, what is the nominal interest rate offered by the bank?

Enter principal: 945
Enter total value: 1309.79
Enter number of years: 4.5
Enter number of compounding periods per year: 12

The result is:

int_rate = 7.28

### Example 2 - Final Value:

David invests \$3000. Ten years later he has earned \$1576 in interest. If interest is compounded each month, what is the nominal interest rate on the account?

Enter principal: 3000
Enter total value: 4576
Enter number of years: 10
Enter number of compounding periods per year: 12

The result is:

int_rate = 4.23

From 'Nominal Interest Rate' to home

From 'Nominal Interest Rate' to 'Finance Formulas'

 Top Interest calculator online Salvage value Calculate annuity Calculate future value Compound Interest

## Related pages

gui matlab codebinary to grey codecallback matlabsimple interest calcmatlab expdefine piecewise function matlabhow to write unit step function in matlabexponential curve fitting matlabboolean lawannuity functionsmith chart and its applicationsconvert from cartesian to polaraxis scale matlabproblems on nodal analysisimpulse function matlabmatlab dot plotprogram to convert binary to decimalonline definite integral calculatormatlab draw rectangle on imagematlab programming exampleshow to solve a piecewise functionconvert char to asciiqr decomposition matlabsolving systems of equations with matlablothar collatzwhile loop example matlabmatlab solve matrix equationascii encoding tablehalf life formulasbell curve normal distributionhow to calculate depreciation with residual valuescrap value formulamatlab peak fittingbinary to dec convertersvd matlab codecalculate sq feet from incheshow to convert signed binary to decimalsolve definite integralscode to convert decimal to binarygraycodegraphing unit step functionsdefinite integral matlabhow to graph piecewise defined functionsmatlab programming basicslinear algebra matlabhow to write a program in matlabascii range of alphabetsdirac impulsquadratic equation solver onlinewhat is the equation to calculate bmihandles in matlabmatlab compare stringswattage price calculatormatrix is singular to working precisioncftool matlabamorization table3d rotation matrix matlabwriting a program in matlabcalculator chi squarezy smith chartsample matlab codematlab roots functionscilab programming tutorialexample of decimal to binary conversionfinding roots using bisection methodintigral calculatormatlab calculatorcompute permutationstakagi factorizationbinary to ascii conversion tablesolving systems of equations matlabhow do you calculate your bmi manuallydepreciation and salvage value