Compound Interest in LaTeX (A = P(1 + r/n)^{nt})

A=P(1+r/n)ntA = P(1 + r/n)^{nt}
LaTeX command
A = P(1 + r/n)^{nt}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Compound interest formula: the amount A after t years when principal P earns rate r compounded n times a year.

Here P is principal, r the annual nominal rate, n the compounding periods per year, and t the number of years; monthly compounding uses n = 12. As n grows, the amount approaches the continuous formula Pe^{rt}. The exponent must be braced, ^{nt}, otherwise only n is raised. The inline slash r/n keeps the line compact; in display equations, \left(1 + \frac{r}{n}\right)^{nt} is more common and the \left( \right) pair grows the parentheses to fit the fraction. Do not write \frac inside unscaled parentheses, which leaves them visibly too short.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

A=P(1+r/n)nt=1000(1+0.05/12)120A = P(1 + r/n)^{nt} = 1000(1 + 0.05/12)^{120}
\documentclass{article}
\begin{document}
Compound Interest: $A = P(1 + r/n)^{nt}$

\[ A = P(1 + r/n)^{nt} = 1000(1 + 0.05/12)^{120} \]
\end{document}

Related symbols

All Mata Uang & Keuangan →

Frequently asked questions

How do I write Compound Interest in LaTeX?
Type A = P(1 + r/n)^{nt} in math mode, for example $A = P(1 + r/n)^{nt} = 1000(1 + 0.05/12)^{120}$. It works in plain LaTeX without loading any package.
Which package do I need for A = P(1 + r/n)^{nt}?
None. A = P(1 + r/n)^{nt} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use A = P(1 + r/n)^{nt} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A = P(1 + r/n)^{nt}$ in running text.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian