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 Currency at Finance →

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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers