Home Academic Skills Childhood Education Freelancing & Remote Jobs Physical Education Free Tools →
Sunday, December 6, 2026
Federal employee tools

TSP Loan Calculator

Use this free TSP loan calculator to work out your payment per paycheck, the most you can borrow from your Thrift Savings Plan, and the true cost of borrowing from your own retirement savings. Enter your own contributions and earnings, any loan you already owe, the amount you want, and the term, and the calculator applies the official TSP loan rules: the three maximum loan tests, the G Fund rate, the loan fee, and the growth you miss while the money is out.

Your loan

Use the figures from My Account on tsp.gov. Only your own money counts, not agency money.

A primary residence loan needs documents and can only pay costs still needed to close.

$

Your money plus its earnings. Agency automatic and matching money does not count, and money in the mutual fund window does not count.

$

Your current outstanding TSP loan balance, or 0 if you owe nothing.

$

The highest balance you owed at any point in the last 12 months, even if that loan is now paid off.

$

From $1,000 up to the most you can borrow, shown in the result.

General purpose: 12 to 60 months. Primary residence: 61 to 180 months.

Most federal employees are paid biweekly, so loan payments come out every two weeks.


Rate and return

The loan rate is fixed for the life of the loan. The return is only for the lost growth illustration.

%

The G Fund rate for the month before you apply. Check the current rate on tsp.gov, because it changes monthly.

%

Used only to show the growth you could miss. Returns are not guaranteed and can be negative.

Payment per paycheck
$175.60

130 biweekly payments over 5 years

Cash you receive$19,950.00
Most you can borrow$35,000.00

Total you repay: $22,828.28, of which $2,828.28 is interest paid back into your own account. Estimates only. TSP computes interest daily and sets the final payment, so confirm the official figures in My Account before you borrow.

Quick answer: You can borrow $1,000 to $50,000 from your own TSP contributions and their earnings, at the G Fund rate for the month before you apply, fixed for the life of the loan. A general purpose loan runs 12 to 60 months with a $50 fee; a primary residence loan runs 61 to 180 months with a $100 fee. The interest goes back into your own account, so the real cost is the growth that money misses while it is out, plus the fee, which never comes back.

How the maximum TSP loan is set

The most you can borrow is the smallest of three amounts. TSP runs all three tests on your account, and the lowest result is your limit. The calculator above runs the same three tests from the figures you enter.

TestWhat it measuresHow it is worked out
Test 1: your own moneyYour own contributions and their earningsYour own contributions and earnings in the account you borrow from, not counting any outstanding loan balance
Test 2: the 50% testHalf of your own money, or $10,00050% of your own contributions and earnings (counting any outstanding loan balance), or $10,000 if that is greater, minus any outstanding loan balance
Test 3: the $50,000 testThe 12 month lookback$50,000 minus your highest outstanding loan balance at any point during the last 12 months, even if that loan is now paid off

Agency automatic and matching contributions and their earnings do not count in any test, and money in the mutual fund window does not count either. If you have both a civilian account and a uniformed services account, tests 2 and 3 use the combined balances and the total of all your loans, while test 1 looks only at the account you borrow from.

Worked example: three tests, one limit

Say your own contributions and earnings are $80,000, you owe $5,000 on a loan now, and your highest balance in the last 12 months was $12,000.

TestWorkingResult
Test 1$80,000 minus $5,000 outstanding$75,000
Test 250% of $80,000 is $40,000, which beats $10,000, minus $5,000 outstanding$35,000
Test 3$50,000 minus $12,000 highest balance in the last 12 months$38,000
Most you can borrowThe smallest of the three tests$35,000

Notice that a loan you already paid off still cuts your limit if it was open in the last 12 months. That is the rule that trips up the most people: test 3 looks back a full year, not at what you owe today. The maximum is recalculated every business day from daily share prices, so the amount can change before your loan is processed. If your balance falls and the amount available drops before the money goes out, you get a smaller loan with the same term, and if it drops below $1,000 the request is canceled.

Who can borrow, and who cannot

You can borrow only if all of these are true:

  • You have at least $1,000 of your own contributions and associated earnings in your account, not counting money in the mutual fund window.
  • You are currently employed as a federal civilian employee or a member of the uniformed services. Separated or retired participants and beneficiary participants cannot take out a new loan.
  • You are in pay status, because loan payments are deducted from your pay. You can borrow even if you have stopped contributing your own money.
  • You have not repaid any type of TSP loan in full within the past 30 business days.

You can hold two loans at once, but only one of them can be a primary residence loan. After you repay a loan in full, you must wait 30 business days before you can take out another one.

General purpose loan vs primary residence loan

TSP allows two types of loans. They share the same interest rate rule and the same maximum loan tests, but they differ in use, documents, fee, and term.

RuleGeneral purposePrimary residence
What it can be used forAny purposeOnly the future purchase or construction of a primary residence, and only for costs still needed to close
DocumentationNoneRequired, within 30 days of the request
Repayment term12 to 60 months61 to 180 months
One-time fee$50$100
Minimum loan$1,000$1,000
Interest rateG Fund rate for the month before you applyG Fund rate for the month before you apply
How many at onceUp to two loans in totalOnly one primary residence loan at a time

What a primary residence loan can pay for

A primary residence loan can pay for a house, a townhouse, a condominium, shares in a cooperative housing corporation, or a mobile home, as long as it is the home you will live in and you or your spouse buys it in whole or in part.

What it cannot pay for

  • Paying yourself back for money already spent, such as earnest money or a deposit on your down payment
  • Refinancing or prepaying your existing mortgage
  • Building an addition to the home you already live in
  • Renovations to the home you already live in
  • Buying out another person's share in your current home
  • Buying land only
  • Buying a house you have already closed on

The key word is future: the purchase or construction must still be ahead of you, and only the costs still needed to close count. If you already closed, a primary residence loan is off the table, and a general purpose loan is the only option.

How the TSP loan payment is worked out

A TSP loan uses standard amortization. Each payment first covers the interest that has built up, then reduces the principal. The payment is set when the loan is made and normally stays level for the life of the loan.

Payment per paycheck = loan amount x r / (1 - (1 + r)-n), where r = annual rate / pay periods a year, and n = pay periods in the term

For a biweekly paid employee there are 26 pay periods a year, so a 5 year loan has 130 payments and the rate per period is the annual rate divided by 26. TSP computes interest daily and sets the final payment, so the last payment can differ by a few cents from the rest. The calculator uses standard amortization, which matches the official payment to the cent in the examples below.

One detail catches people out: the fee comes out of the loan, but you repay the full amount. Borrow $20,000 as a general purpose loan and you receive $19,950, yet your payments are worked out on the full $20,000. Borrow $40,000 for a home and you receive $39,900, yet you repay the full $40,000 with interest. The fee is never returned to your account.

As a cross-check, a $10,000 general purpose loan at the same rate over 60 months costs $87.80 per biweekly paycheck. That matches the payment other calculators show for the same loan, which is how you know the formula is right.

How to use this TSP loan calculator

  1. Pick the loan type. Choose general purpose for any use, or primary residence if you are buying or building the home you will live in. The fee and the allowed term change with the type.
  2. Enter your own contributions and earnings. Find this in My Account. Use only your money and its earnings, not agency automatic or matching money, and not money in the mutual fund window.
  3. Enter the loans you already have. Put in the balance you owe now and the highest balance you owed in the last 12 months, even if that loan is paid off. Both feed the maximum loan tests.
  4. Set the amount, term, and rate. Enter the amount you want, the term in months, and the G Fund rate. The rate is the G Fund rate for the month before you apply, so check the current rate on tsp.gov.
  5. Read the result. Check the payment per paycheck, the most you can borrow, the cash you receive after the fee, the total interest, and the growth you could miss. If the amount you want is above your limit, lower it or pay down the loan you already owe first. To see how the deduction changes your take-home pay, run the numbers through a gross to net pay calculator with the payment taken out.

TSP loan worked examples

All three examples use the same rate and biweekly pay, so you can compare them directly. The rate used is the G Fund rate shown on tsp.gov, and every figure was worked out with the amortization formula above.

Example 1: general purpose loan of $20,000 over 5 years

You borrow $20,000 for 60 months at the G Fund rate, paid biweekly.

FigureAmount
Loan amount$20,000.00
Loan fee (general purpose)$50.00
Cash you receive$19,950.00
Payment per paycheck$175.60
Number of payments130
Total you repay$22,828.28
Total interest, paid to your own account$2,828.28

Each paycheck, $175.60 comes out of your pay and goes back into your TSP account, invested the way your current fund election says. The $2,828.28 of interest is not a cost to a lender, because you are the lender. The real cost is in the next section.

Example 2: primary residence loan of $40,000 over 15 years

You borrow $40,000 to buy a home, for 180 months at the same rate, paid biweekly.

FigureAmount
Loan amount$40,000.00
Loan fee (primary residence)$100.00
Cash you receive$39,900.00
Payment per paycheck$149.51
Number of payments390
Total you repay$58,307.85
Total interest, paid to your own account$18,307.85

The payment is lower than the 5 year loan even though the amount is twice as big, because 15 years spreads it out. The price is the interest: $18,307.85 over the life of the loan, and 15 years of missed growth on $40,000. Paid monthly instead of biweekly, the same loan costs $324.19 a month and $58,353.51 in total, a little more because monthly payments let interest build up longer between payments.

Example 3: what happens if you leave service after one year

You borrow $15,000 for 60 months at the same rate, then leave federal service after 12 months of payments.

FigureAmount
Loan amount$15,000.00
Payment per paycheck$131.70
Balance still owed after 12 months$12,313.22
Income tax at 22% on the balance$2,708.91
10% early withdrawal penalty tax$1,231.32
Total tax hit if the loan is foreclosed$3,940.23

After a year of payments you still owe $12,313.22, because early payments are mostly interest. If you keep paying after you leave, nothing bad happens. If you stop and the loan is foreclosed, that $12,313.22 becomes taxable income, and at a 22% tax rate with the 10% early withdrawal penalty it costs $3,940.23 in tax. That is why the leave-service rule matters more than the interest rate when you take out a loan.

The real cost: the growth you miss

The interest is not the cost, because it goes back into your account. The cost is that the money you borrow stops earning what your funds would have earned while it is out, and you repay it from after-tax pay. The calculator shows this with the return you enter, using a simple lump-sum comparison: the borrowed amount is treated as if it had stayed invested for the whole term. That slightly overstates the cost, because your repayments gradually rebuild the balance, but it is the clearest way to see the trade.

If the $20,000 had stayed investedAt 6% a yearAt 8% a year
Value after 5 years$26,764.51$29,386.56
Growth missed$6,764.51$9,386.56
Less interest paid to yourself$2,828.28$2,828.28
Net cost of the loan$3,936.24$6,558.29

At a 6% return, the $20,000 loan really costs about $3,936.24 over 5 years, not the $2,828.28 of interest, and not zero. At 8%, the same loan costs about $6,558.29. The higher your funds would have earned, the more the loan costs you. That is also why the term matters: a 15 year loan keeps the money out three times as long as a 5 year loan, so the missed growth is far bigger even though the payment is lower.

There is one more cost that is easy to miss. Loan payments come out of your paycheck, and some people cut their TSP contribution to make room for the payment. If you drop below 5% as a FERS or BRS participant, you lose part of the agency match, and that match is free money you never get back. Keep contributing at least 5% while the loan runs, and use the TSP contribution calculator to check what your contribution is worth. To see how a smaller TSP balance changes your income in retirement, run the FERS retirement calculator with and without the loan.

Repayment: payroll deduction and what changes it

While you are still in federal service, loan payments come out of each paycheck by payroll deduction and go back into your account, invested under your current fund election. The payment is set when the loan is made and is normally level for the life of the loan. You cannot stop loan payments once the loan is made.

TSP changes the payment in only two situations: if you move to an agency with a different pay schedule, so the loan is re-amortized, or if your loan payments are suspended during a period of nonpay status. Unpaid leave stops payroll payments, and your payroll office, not TSP, starts and stops the deductions. If you miss two or more payments, or pay less than required, and do not catch up by the deadline TSP gives you, the unpaid balance and accrued interest become a taxed loan. The IRS treats it as taxable income, and if you are under age 59 and a half you may owe an extra 10% early withdrawal penalty tax. Roth earnings in the loan are taxed even if they were already qualified. A taxed loan permanently reduces your account unless you pay it off, and it counts against your next loan.

You can prepay without a penalty at any time by check, money order, or direct debit. Prepaying cuts the interest and shortens the time your money is out of the market, so it is the cheapest way to undo a loan you no longer need. To see how the deduction changes your take-home pay, check your pay with the federal employee paycheck calculator and take the loan payment out of the result.

If you leave federal service with a loan

Leaving federal service does not cancel the loan. You have three choices: keep paying it monthly by check, money order, or direct debit; pay it off in full; or let it be foreclosed. If you keep paying, the loan carries on as before. If payments stop and you do not catch up within the cure period TSP gives you, about 90 days after separation is reported, the loan is closed and the unpaid balance and accrued interest are treated as a distribution.

A foreclosed loan is taxable income in the year it is declared. The 10% early withdrawal penalty tax can also apply, unless you turn 55 or older in the year the foreclosure is declared. Public safety employees have a lower line: age 50, or 25 years of service. You may be able to roll over the taxable amount with personal funds by your tax filing deadline, including extensions, which can undo the tax hit if you have the cash. The exact deadline is in your loan agreement and in the TSP booklet on tax rules, so read both before you decide to let a loan go.

The practical rule is simple: do not take out a TSP loan in the year you plan to leave, unless you can pay it off before you go. The worked example above shows why. After a year of payments on a $15,000 loan you still owe $12,313.22, and letting that balance be foreclosed can cost close to $4,000 in tax.

TSP loan vs hardship withdrawal

If you need cash and a loan does not fit, a hardship withdrawal is the other route, but it is a much worse deal in almost every case. The table shows why.

PointTSP loanHardship withdrawal
Do you get the money back?Yes, you repay it to your own account with interestNo, the money leaves your account for good
Income taxNone while you repay on timeTaxed as income in the year you take it
10% early withdrawal penaltyOnly if the loan becomes a taxed loan or is foreclosedApplies if you are under age 59 and a half, with limited exceptions
Effect on your balanceTemporary, while the loan is outPermanent, plus all the growth that money would have earned
Can you keep contributing?Yes, and you should keep at least 5% for the matchContributions stop for 6 months after a hardship withdrawal
What it can be used forAny purpose, or a primary residenceOnly a proven financial hardship, with documents
Fee$50 or $100, taken from the loanNo fee, but the tax bill is usually far bigger

A loan is almost always the better choice if you can repay it. A hardship withdrawal only wins when you cannot repay anything at all, because a loan you cannot repay turns into a taxed loan anyway, with the same tax and penalty, and it still counts against your next loan.

What this calculator does not include

  • Daily interest: TSP computes interest daily and sets the final payment, so the last payment can differ by a few cents from the estimate here.
  • Your exact maximum loan: the calculator uses the figures you enter, but TSP recalculates your maximum every business day from daily share prices, and My Account shows the official amount.
  • Roth and tax-exempt money: the tax treatment of the Roth and tax-exempt parts of a taxed loan or a foreclosure is different from the treatment of traditional money, and the calculator does not split them out.
  • State tax: a foreclosed loan is also income for state tax in most states, and the calculator does not estimate that.
  • Agency matching: the calculator does not model the match you lose if you cut your contribution below 5% while the loan runs.
  • Two accounts: if you have both a civilian account and a uniformed services account, enter the combined figures for tests 2 and 3, as the rules require.

Methodology and sources

Payments use standard amortization at the rate you enter, rounded to the cent. The maximum loan uses the three tests from the TSP loan rules: your own contributions and earnings, the 50% or $10,000 test, and the $50,000 test with the 12 month lookback. The lost growth illustration treats the borrowed amount as if it had stayed invested at the return you enter for the whole term, and subtracts the interest paid to yourself. That slightly overstates the cost, because repayments rebuild the balance as the loan runs, and the result is labeled as an illustration for that reason. The rate used in the examples is the G Fund rate shown on tsp.gov. Check the current figures on tsp.gov before you borrow, because the rate changes monthly and the maximum is recalculated every business day.

Official sources: TSP booklet Loans; tsp.gov TSP loans page; federal loan rules in 5 CFR part 1655; IRS Publication 721 on the tax rules for federal retirement payments. Sources are named in plain text; the only outbound link on this page is the Wikipedia link in the introduction.

TSP loan calculator FAQs

How much can I borrow from my TSP?
The smallest of three amounts: your own contributions and their earnings in the account you borrow from, not counting any outstanding loan; 50% of your own contributions and earnings, or $10,000 if that is more, minus any outstanding loan; and $50,000 minus your highest outstanding loan balance in the last 12 months. The minimum loan is $1,000. Agency money and money in the mutual fund window do not count.
What is the TSP loan interest rate?
The G Fund interest rate for the month before you request the loan, fixed for the life of the loan. Check the current rate on tsp.gov before you apply, because it changes monthly. You pay the interest to your own account, so it is not a cost to a lender, but it is not tax deductible.
How long do I have to repay a TSP loan?
A general purpose loan runs 12 to 60 months and needs no documentation. A primary residence loan runs 61 to 180 months and needs documents showing the purchase or construction costs. Payments come out of your pay every pay period, and you can prepay without a penalty.
What fees does a TSP loan have?
A one-time fee comes out of the loan: $50 for a general purpose loan and $100 for a primary residence loan. If you borrow $20,000 as a general purpose loan you receive $19,950, and you still repay the full $20,000 with interest. The fee is never returned to your account.
Can I have two TSP loans at once?
Yes, you can hold two loans at once, but only one of them can be a primary residence loan. The two-loan limit applies per account, so with both a civilian account and a uniformed services account you could have up to four loans. After you repay a loan in full, you must wait 30 business days before you can take out another one.
What happens to my TSP loan if I leave federal service?
You can keep paying monthly by check, money order, or direct debit, pay it off in full, or let it be foreclosed. If payments stop and you do not catch up in time, the unpaid balance and accrued interest become taxable income, and the 10% early withdrawal penalty tax can apply unless you turn 55 or older in the year the foreclosure is declared. Public safety employees have a lower line at age 50 or 25 years of service.
Do TSP loan payments come out of my paycheck?
Yes, while you are still in federal service, payments are deducted from each paycheck and go back into your account, invested under your current fund election. The payment is set when the loan is made and you cannot stop it. After you leave service, you pay by check, money order, or direct debit instead.
Is the interest on a TSP loan tax deductible?
No. The interest is not tax deductible, even though it goes back into your own account. The loan itself is not taxable while you repay it on time, which is the main tax advantage over taking the money out.
Can I pay off my TSP loan early?
Yes, you can prepay without a penalty at any time by check, money order, or direct debit. Prepaying cuts the interest and gets your money back into the market sooner, so it is the cheapest way to undo a loan you no longer need.
Is a TSP loan better than a hardship withdrawal?
Yes, in almost every case. A loan is repaid to your own account, is not taxed while you repay on time, and lets you keep contributing. A hardship withdrawal is taxed as income, can carry the 10% penalty, stops your contributions for 6 months, and the money is gone for good with all the growth it would have earned.

More federal employee tools

Official sources: TSP booklet Loans; tsp.gov TSP loans page; federal loan rules in 5 CFR part 1655; IRS Publication 721 on the tax rules for federal retirement payments. Sources are named in plain text; the only outbound link on this page is the Wikipedia link in the introduction.

Syed Osama, developer at SkillGuidely
Designed & developed by

Syed Osama

Syed Osama is a digital publishing specialist who builds career metrics, financial calculators, and interactive web tools. He focuses on developing practical calculation resources to help remote workers, freelancers, and professionals make quick, accurate financial estimations.

This calculator gives an estimate for education only. It is not tax, legal, or financial advice. Retirement rules change, and your official figures are in My Account on tsp.gov, so confirm the rate, the maximum loan, and the payment there before you borrow.