To solve for p in terms of a and i, you rearrange the equation that connects the three quantities so that p sits alone on one side and every remaining term contains only a and i. The exact rearrangement depends on which relationship you mean: simple interest, compound interest, an annuity, or a generic linear, exponential, or logarithmic equation. In each case you apply inverse operations in reverse order, and the answer is a formula, not a single number.
That instruction covers at least four standard relationships. Simple interest balances have the form a = p(1 + in). Compound growth has the form a = p(1 + i)^n. Present-value and annuity problems tie a, p, and i through discount factors. Generic algebra problems connect the same three letters through linear or logarithmic forms. Each has a distinct rearrangement, and confusing them is the most common source of wrong answers.
The core mechanism: inverse operations in reverse order
Rearranging an equation is subtraction, division, and root-taking applied to both sides until the target variable is isolated. The reliable procedure runs the order of operations backward. If the original formula multiplies p by a factor, you undo the factor by dividing. If it raises a factor to a power, you undo the power with a root or a logarithm. The variable you want determines whether the log lands on both sides or disappears.
For a linear equation such as a = p + i, subtracting i from both sides gives p = a − i. For a product such as a = pi, dividing both sides by i gives p = a/i, valid whenever i ≠ 0. For a linear combination such as a = p + pi, factor p out first to get a = p(1 + i), then divide to get p = a/(1 + i). Factoring before dividing is the step students skip most often.
Simple interest is the same mechanism with a temporal multiplier. The balance is a = p(1 + in), where n is the number of years and i is the annual rate in decimal form. Dividing both sides by the factor (1 + in) isolates the principal: p = a/(1 + in). The expression 1 + in is the accumulation factor, and the reciprocal 1/(1 + in) is the discount factor. That reciprocal is why the same operation serves both accumulation and present-value problems.
Compound interest adds an exponent, which changes the inversion tool. The balance is a = p(1 + i)^n. Dividing by the power first gives p = a/(1 + i)^n. If instead you must solve for the rate implicit in a and p, take the nth root of a/p and subtract 1. If you must solve for n, apply a logarithm to both sides and divide by ln(1 + i). The choice of inverse depends entirely on which variable is trapped in an exponent.
Plain-language version: every formula here is a recipe for moving a factor from one side to the other by doing the opposite operation. Logarithms are just the opposite operation for exponents, and roots work only when the exponent is a clean fraction you can name.
Compound-interest rearrangement, quantified
The compound formula p = a/(1 + i)^n produces large effects from small differences in the rate and the horizon. Suppose a future balance of USD 10,000 is due in 10 years at 6 percent annual compounding. The discount factor is 1.06^10, which equals 1.7908. Dividing 10,000 by 1.7908 gives p ≈ USD 5,584. At 4 percent the factor is 1.04^10, or 1.4802, and p ≈ USD 6,756. Two percentage points of rate change the present value by about USD 1,172 on the same promised balance.
The horizon matters as much as the rate. At 6 percent, stretching the same USD 10,000 promise from 10 years to 30 years raises the discount factor from 1.7908 to 5.7435. The present value falls from USD 5,584 to about USD 1,741. The exponent amplifies whatever sits inside the parentheses, which is why long-dated cash flows are so sensitive to the assumed rate.
The same inversion works for fractional periods. If the balance is a = p(1 + i)^t with t measured in months and i expressed as a monthly rate, the rearrangement is unchanged: p = a/(1 + i)^t. Annual rates require conversion first. The standard relationship is (1 + i_annual) = (1 + i_monthly)^12, so an annual rate of 6 percent corresponds to a monthly rate of about 0.487 percent. Converting rates before solving prevents the most common unit error in these problems.
A counterintuitive detail: the difference between simple and compound present values is small at low rates and short horizons but grows without bound. For a 1-year horizon, simple and compound discounts differ only by the cross term in^2, which is negligible. For a 30-year horizon at 6 percent, simple interest divides by 1 + 1.8 = 2.8 while compound interest divides by 5.74. The same nominal rate yields present values that differ by more than a factor of two.
The annuity and present-value variants
Annuities tie a, p, and i through a sum of discount factors rather than a single power. The present value of a level annuity paying p each period is a = p × [1 − (1 + i)^(−n)]/i. Rearranging for the payment gives p = a × i/[1 − (1 + i)^(−n)]. Everything in that bracket depends only on i and n, so the payment is proportional to the lump sum a once you fix the rate and term.
The same algebra also describes a perpetuity, which is the limit as n grows without bound. In that limit the bracket collapses to 1/i, and the payment becomes p = a × i. A USD 100,000 fund earning 5 percent supports a perpetual payment of USD 5,000 per year. The finite-term annuity payment is always larger than the perpetuity payment for the same rate, because the finite version must also return the principal.
Loan amortization is the present-value annuity run backward on the borrower's side. A mortgage balance a repaid with level payments p at periodic rate i over n periods obeys the same formula. Solving for the payment is identical to the annuity rearrangement, and solving for the principal is identical to the present-value form. That efficiency is why one rearrangement serves retirement, insurance, and mortgage problems alike.
The standard annuity formula is only exact when the rate is constant. Variable-rate annuities have no closed-form rearrangement of this kind. The present value becomes a sum of products of discount factors, and isolating p requires numerical methods rather than one algebraic step. Professional valuation often uses scenario analysis instead of a single solved value.
Which formula applies: comparison table
| Relationship | Given equation | Solve for p | Conditions and caveats |
|---|---|---|---|
| Simple interest | a = p(1 + in) | p = a/(1 + in) | Linear in n; no compounding |
| Compound interest | a = p(1 + i)^n | p = a/(1 + i)^n | Constant rate; integer or fractional n |
| Level annuity present value | a = p[1 − (1 + i)^(−n)]/i | p = a × i/[1 − (1 + i)^(−n)] | Fixed payment; end-of-period timing |
| Perpetuity | a = p/i | p = a × i | Infinite horizon; rate must be positive |
| Linear combined form | a = p + pi | p = a/(1 + i) | One-time factor; i ≠ −1 |
| Logarithmic form | ln(a) = ln(p) + i | p = a × e^(−i) | Requires a > 0 and p > 0 |
The table rows differ in the number of compounding steps, not in the algebra. Each rearrangement is a division or an exponentiation, and each carries an exclusion zone where the denominator or the logarithm breaks down. Reading the given equation first, then matching it to a row, prevents applying the compound formula to a simple-interest problem.
Simple versus compound interest is a decision point with a concrete test. If the problem says interest is paid on the original principal only, use the linear form. If it says interest earns interest, or names compounding frequency, use the power form. A problem that says annual percentage rate without specifying frequency is ambiguous, and the safe approach is to state the compounding assumption before solving.
Edge cases and the conditions matrices hide
Every rearrangement carries domain restrictions that the compact formula hides. Division requires a nonzero denominator, so i ≠ 0 in the annuity and perpetual forms, and i ≠ −1 in the linear combined form. A zero rate has a well-defined annuity limit: as i approaches zero, the payment approaches a/n. That limit is worth computing directly rather than treating the zero-rate case as unsolvable.
Logarithmic forms require positive arguments. In ln(a) = ln(p) + i, both a and p must be positive, so the rearrangement p = a × e^(−i) is valid only for positive amounts. Rates in this form are continuously compounded, and converting between continuous and periodic rates uses i_periodic = e^(i_continuous) − 1. Mixing the two conventions is a routine source of factor-of-e errors.
Negative or non-integer exponents have their own rules. A discount factor (1 + i)^(−n) is defined for any real n when 1 + i is positive, but it becomes complex or undefined for negative bases and fractional exponents. In practical rate problems the factor is always positive, so this edge is mostly theoretical. It matters when a formula is reused with a negative rate, such as a depreciation or deflation scenario.
The counterintuitive edge case is the rate near −1. As i approaches −1, the factor (1 + i) approaches zero and the discount factor explodes. An equation that is perfectly well behaved at i = 0.05 becomes numerically wild at i = −0.99. This is a mathematical singularity, not a market event, but it explains why solving for p with a deeply negative rate returns implausible values.
Misconceptions that produce wrong answers
The most common error is inverting the wrong variable. Many students solve a = p(1 + i)^n for i when the question asked for p, then report the rate. Writing the target variable at the top of the page before starting prevents this. A second error is applying the simple-interest rearrangement to a compound problem, which understates the discount at long horizons and overstates it at short ones.
A third misconception is that the frequency of compounding changes the formula's shape. Frequency changes the rate used per period and the number of periods, never the rearrangement itself. An annual rate with monthly compounding uses i/12 and 12n in the exponent, and the algebra for p is unchanged. Treating monthly compounding as a different formula is a naming confusion, not a mathematical difference.
Red flag: solving for p and getting a negative result when a, i, and n are all positive indicates an algebra slip, not a real present value. Red flag: a payment that exceeds the lump sum in an annuity means the term or rate is misread. Red flag: using a logarithmic rearrangement when the equation is polynomial produces an answer with the wrong units. Red flag: dividing by a denominator that contains i when i is zero produces an infinite or undefined value, and the limit must be taken instead. Red flag: mixing continuously compounded and periodically compounded rates inside one expression guarantees a wrong result.
A worked timeline of the rearrangement
The order of operations for a compound present value follows a fixed sequence, and writing the steps as a timeline makes the procedure auditable. The steps below assume a = p(1 + i)^n with known a, i, and n.
| Step | Operation | Result |
|---|---|---|
| 1 | Identify the target | p is the unknown |
| 2 | Identify the factor multiplying p | (1 + i)^n |
| 3 | Divide both sides by the factor | a/(1 + i)^n = p |
| 4 | Check the rate convention | Confirm i is per period |
| 5 | Check the period count | Confirm n matches i's period |
| 6 | Compute the denominator | Evaluate (1 + i)^n |
| 7 | Divide and round | Report p to the correct precision |
| 8 | Sanity-check the sign and size | p must be positive and below a |
The timeline is the same for the annuity version except that step 2 replaces the single power with the annuity factor. The sanity check in step 8 is where most errors surface. A present value above the future amount is impossible at a positive rate, so any such result signals a misread rate, period, or formula.
Practical actions and a checklist
Working the rearrangement deliberately, in a fixed order, prevents nearly all of the errors above. The checklist below turns the algebra into a repeatable procedure that works for any of the formula families.
Write the given equation with the target variable isolated in a note before touching the algebra. Match the equation to its family (linear, simple, compound, annuity, logarithmic) using the words in the problem. Convert all rates to the same period as the time variable before dividing. Factor out p whenever it appears in more than one term, then divide. Take a root or logarithm only after every other operation is undone. Substitute the numbers last, and check that the result is positive and smaller than the future amount.
The threshold question is whether the problem is a one-time accumulation or a stream of payments. One-time problems need a single discount factor; streams need the annuity factor. That distinction determines the denominator, and the denominator determines the answer. Getting the denominator right is more than half the work.
For practitioners, spreadsheet functions already implement these rearrangements, and using them as a cross-check catches algebra errors. The present-value function returns the same number that the formula produces when the rate and period conventions match. When the two disagree, the formula's assumptions are almost always the culprit.
Limitations and where the formula stops
Every rearrangement here assumes a constant rate, a single known horizon, and exact inputs. Real financial and scientific problems often violate all three. Rates move, horizons are uncertain, and measured amounts carry rounding error. The solved formula returns a point estimate that inherits every one of those assumptions.
The formulas also assume discrete compounding at a fixed interval, or continuous compounding when a logarithm appears. The two conventions are related but not interchangeable, and mixing them produces answers that can be off by a few percent over long horizons. For short horizons the gap is negligible; for long horizons it compounds.
Numerical precision matters at extreme parameter values. A discount factor computed to four decimal places can shift a present value by several dollars on a large balance, and repeated intermediate rounding compounds the error. Carrying full precision until the final step is a cheap safeguard that the formula alone does not enforce.
This article is general educational information about algebra and the mathematics of interest, not a financial, investment, or tax recommendation. It does not account for your circumstances, and it does not promise any outcome or return. Consult a qualified financial professional or a mathematics instructor for guidance on a specific problem or decision.