Inspect the Arithmetic: RRSP Contribution Room & Tax Refund Calculator

This page documents the variables, formulas, and assumptions used by the RRSP Contribution Room & Tax Refund Calculator.

The goal is not to predict your exact CRA result. The goal is to make the arithmetic transparent so you can see how each input changes room, deductions, and tax.

No opinions. No hidden assumptions. Just arithmetic.

Back to Calculator

1. What this calculator estimates

This calculator estimates, for a selected tax year and province:

  • Estimated RRSP contribution room based on prior-year earned income, annual caps, unused room, and pension adjustments.
  • Deductible RRSP contribution amount, capped by available room (or an optional CRA deduction limit override).
  • Estimated tax refund or tax savings from the RRSP deduction.
  • After-tax cost of the RRSP contribution (contribution minus estimated refund).
  • Remaining RRSP room after the contribution.
  • Any excess contribution relative to available room in this model.

2. Variable definitions

  • Tax Year: Calendar tax year being modelled (2025 or 2026).
  • Prior-Year Earned Income: RRSP-eligible earned income from the prior tax year (employment and similar income).
  • Unused Carryforward Room: RRSP room carried forward into the selected tax year.
  • PA (Pension Adjustment): Pension adjustment that reduces RRSP room.
  • PAR (Pension Adjustment Reversal): Pension adjustment reversal that restores RRSP room.
  • PSPA (Past Service Pension Adjustment): Past service pension adjustment that reduces RRSP room.
  • CRA Deduction Limit Override: Optional input for the official RRSP deduction limit from your CRA Notice of Assessment.
  • Planned Contribution: Amount you plan to contribute for the selected tax year.
  • Province / Territory: Province or territory of residence for tax purposes.
  • Taxable Income Before RRSP Deduction: Your taxable income before applying this RRSP deduction.

3. Contribution room formula

Annual RRSP caps are hard-coded as:

RRSP_LIMITS = {
  2025: 32,490
  2026: 33,810
}

The calculator first computes new RRSP room for the selected tax year:

New RRSP Room = min(18% × Prior-Year Earned Income, Annual RRSP Cap)

Then it estimates available RRSP room:

Available RRSP Room =
  Unused Carryforward Room
+ New RRSP Room
− Pension Adjustment (PA)
+ Pension Adjustment Reversal (PAR)
− Past Service Pension Adjustment (PSPA)

If the CRA deduction limit override is not used, the available room for deduction equals this estimate. If the override is enabled, the official CRA deduction limit replaces the estimated room for deduction while the estimate is still shown for comparison.

4. Refund and cost formulas

The deductible contribution is:

Deductible Contribution = min(Planned Contribution, Available RRSP Room)

New taxable income after the RRSP deduction is:

New Taxable Income = max(0, Taxable Income Before RRSP Deduction − Deductible Contribution)

In progressive mode, the calculator estimates income tax before and after the deduction using federal and provincial brackets, then takes the difference:

Estimated Refund = Tax Before RRSP Deduction − Tax After RRSP Deduction

In simple marginal-rate mode, the calculator multiplies the deductible contribution by the combined marginal rate at the starting taxable income:

Estimated Refund = Deductible Contribution × Marginal Tax Rate

The after-tax cost of the contribution is:

After-Tax Cost = Planned Contribution − Estimated Refund

Remaining room after the contribution is:

Remaining Room = Available RRSP Room − Deductible Contribution

Any excess contribution relative to available room in this model is:

Excess Contribution = max(0, Planned Contribution − Available RRSP Room)

5. Worked example

This example uses the following inputs:

  • Tax year: 2025
  • Prior-year earned income: 150,000
  • Unused carryforward room: 8,000
  • PA: 0
  • PAR: 0
  • PSPA: 0
  • Planned contribution: 20,000
  • Taxable income before deduction: 210,000
  • Province: Ontario

Step 1 – New RRSP room

Annual RRSP cap for 2025 is 32,490.

18% × 150,000 = 0.18 × 150,000 = 27,000

New RRSP Room = min(27,000, 32,490) = 27,000

Step 2 – Available RRSP room

With no pension adjustments in this example:

Available RRSP Room =
  8,000 (Unused Carryforward Room)
+ 27,000 (New RRSP Room)
− 0 (PA)
+ 0 (PAR)
− 0 (PSPA)

Available RRSP Room = 35,000

Step 3 – Deductible contribution

Deductible Contribution = min(Planned Contribution, Available RRSP Room)
                        = min(20,000, 35,000)
                        = 20,000

Step 4 – New taxable income

Taxable Income Before RRSP Deduction = 210,000

New Taxable Income = max(0, 210,000 − 20,000)
                   = 190,000

Step 5 – Progressive refund estimate (federal + Ontario)

The calculator applies 2025 federal and Ontario brackets to taxable income of 210,000 and 190,000.

At a high level (numbers rounded for illustration):

Tax Before RRSP Deduction  ≈  Tax on 210,000 (federal + Ontario)
Tax After RRSP Deduction   ≈  Tax on 190,000 (federal + Ontario)

Estimated Refund = Tax Before RRSP Deduction − Tax After RRSP Deduction

Because the 20,000 deduction sits near the upper brackets, the combined marginal rate is relatively high. For example, if the combined marginal rate around this income range is approximately 50% (exact combined rate depends on the precise bracket thresholds), then a 20,000 deduction would generate a refund on the order of:

Approximate Refund ≈ 20,000 × 0.50 = 10,000

The calculator uses the actual 2025 bracket thresholds for Canada and Ontario to compute this more precisely, then reports:

  • Estimated refund in dollars.
  • Effective refund % of the full 20,000 contribution.

Step 6 – After-tax cost and remaining room

Using an illustrative refund of 10,000:

After-Tax Cost = Planned Contribution − Estimated Refund
               = 20,000 − 10,000
               = 10,000

Remaining room after deducting 20,000 from 35,000:

Remaining Room = Available RRSP Room − Deductible Contribution
               = 35,000 − 20,000
               = 15,000

6. Assumptions and limitations

  • Official CRA deduction limit: The calculator’s estimated RRSP room may differ from your official CRA deduction limit. CRA’s records always control how much you can deduct. Use the CRA deduction limit override if you want to start from your Notice of Assessment value.
  • Refund is an estimate: Refunds are estimated using combined federal and provincial brackets for the selected year and province. Many other credits, deductions, and special rules are not modelled.
  • HBP and LLP not modelled: Home Buyers’ Plan (HBP) and Lifelong Learning Plan (LLP) repayments are not included in this version. Those can change your actual RRSP room and deduction behaviour.
  • Contribution vs deduction timing: In practice, contribution timing and deduction timing can differ (e.g., contributions made in the first 60 days of the year). This calculator assumes the contribution and deduction apply to the same tax year.
  • Special pension and historical cases: Complex pension arrangements, historical adjustments, and CRA corrections are not modelled. These can materially change actual room.
  • Simplified tax model: The progressive tax estimate uses brackets only and ignores most credits except where they are constant with respect to this RRSP deduction. The goal is to estimate the change in tax, not to reproduce a full T1 return.

7. Data sources and references

  • RRSP annual limits: Canada Revenue Agency announcements for 2025 and 2026.
  • Federal and provincial brackets: Same JSON data set used by the Canada Personal Income Tax Calculator 2025 on The Long Math.
  • General RRSP rules: CRA documentation on RRSP contribution room, pension adjustments, and deduction limits.

This page is for educational use only. It simplifies some rules to keep the arithmetic inspectable. Always rely on CRA records and professional advice for filing decisions.

Disclaimer: All content on The Long Math — including articles, essays, calculators, tools, or any other material — is provided solely for educational and informational purposes and does not constitute financial, tax, legal, or investment advice. Any results or projections are based on simplified models, assumptions, and user-supplied inputs and may not reflect real-world outcomes. You are responsible for evaluating the accuracy and applicability of the information provided and for conducting your own due diligence. Before making financial decisions, consult a qualified professional.