{
  "id": "student-loan",
  "version": "af421901b413",
  "status": "published",
  "name": "Student Loan Calculator",
  "question": "What will my student loan cost?",
  "summary": "Computes the monthly payment, total interest, and loan fee of a federal Direct Loan at the 2026–27 rates, or a private loan, with interest that builds before repayment starts.",
  "category": "finance",
  "subcategory": "loans",
  "url": "https://www.acalculator.org/finance/student-loan-calculator",
  "markdown": "https://www.acalculator.org/finance/student-loan-calculator.md",
  "kind": "schedule",
  "method": "Monthly rate r = rate ÷ 12; interest before repayment = amount × r × months waited (none on Direct Subsidized); the level payment repays the principal and that interest in n months when each payment goes first to unpaid interest, then to principal (at no waiting, payment = amount × r ÷ (1 − (1 + r)^−n)).",
  "assumptions": [
    "Federal rates and fees are those for Direct Loans first disbursed from July 1, 2026 to June 30, 2027, fixed for the life of the loan.",
    "The standard plan sets 10, 15, 20, or 25 years by the amount borrowed, taken as your total federal principal.",
    "Interest before repayment is simple interest on the amount borrowed and is not added to the principal; it is paid first when repayment starts.",
    "The whole amount is disbursed at once, and interest is charged monthly at the rate ÷ 12.",
    "Values are not rounded to the cent between months; the Department truncates the loan fee to the cent."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "type": {
        "title": "Loan type",
        "description": "A federal Direct Loan first disbursed from July 1, 2026 to June 30, 2027, or a private or other loan.",
        "type": "string",
        "enum": [
          "sub",
          "unsub",
          "grad",
          "plus",
          "other"
        ]
      },
      "amount": {
        "title": "Amount borrowed",
        "description": "The principal you borrow, before the loan fee is taken out.",
        "type": "number",
        "x-unit": "USD",
        "exclusiveMinimum": 0,
        "maximum": 10000000
      },
      "rate": {
        "title": "Interest rate",
        "description": "The fixed yearly interest rate of the loan.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 30
      },
      "fee": {
        "title": "Loan fee",
        "description": "A fee taken out of the money paid to you, as a percent of the amount borrowed.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 20
      },
      "plan": {
        "title": "Repayment plan",
        "description": "The standard plan for loans made from July 1, 2026 sets the years by the balance; or choose the years yourself.",
        "type": "string",
        "enum": [
          "standard",
          "years"
        ]
      },
      "years": {
        "title": "Years to repay",
        "description": "The number of years of monthly payments.",
        "type": "integer",
        "minimum": 1,
        "maximum": 30
      },
      "wait": {
        "title": "Months until repayment starts",
        "description": "Months between getting the loan and the first payment, for example the rest of school plus a 6-month grace period.",
        "type": "integer",
        "minimum": 0,
        "maximum": 120
      }
    }
  },
  "outputs": {
    "payment": {
      "label": "Monthly payment",
      "description": "The level monthly payment that repays the loan and any unpaid interest over the repayment years.",
      "format": "money"
    },
    "years": {
      "label": "Years to repay",
      "description": "The repayment period in years.",
      "format": "integer"
    },
    "rate": {
      "label": "Interest rate",
      "description": "The fixed yearly rate used.",
      "format": "percent"
    },
    "borrowed": {
      "label": "Amount borrowed",
      "description": "The principal borrowed.",
      "format": "money"
    },
    "interest": {
      "label": "Total interest",
      "description": "All the interest: what builds before repayment plus what builds during it.",
      "format": "money"
    },
    "before": {
      "label": "Interest before repayment",
      "description": "The interest that builds before the first payment and is paid first when repayment starts.",
      "format": "money"
    },
    "paid": {
      "label": "Total of payments",
      "description": "Every monthly payment added up.",
      "format": "money"
    },
    "feeAmount": {
      "label": "Loan fee",
      "description": "The loan fee rate times the amount borrowed.",
      "format": "money"
    },
    "cash": {
      "label": "Money paid out to you",
      "description": "The amount borrowed minus the loan fee.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "type": "unsub",
      "amount": 30000,
      "rate": 8,
      "fee": 0,
      "plan": "standard",
      "years": 10,
      "wait": 0
    },
    "outputs": {
      "payment": 261.6621651100684,
      "years": 15,
      "rate": 6.52,
      "borrowed": 30000,
      "interest": 17099.18971981231,
      "paid": 47099.18971981231,
      "feeAmount": 317.1,
      "cash": 29682.9
    },
    "text": "Borrowing $30,000.00 at 6.52% and repaying it over 15 years costs $261.66 a month and $17,099.19 of interest."
  },
  "examples": [
    {
      "given": {
        "type": "unsub",
        "amount": 20000,
        "plan": "standard"
      },
      "expect": {
        "years": 10,
        "payment": 227.2995294610879,
        "interest": 7275.943535330885,
        "feeAmount": 211.4
      },
      "source": "hand calculation in content.mdx; Python 3 in docs/progress/WP-31/python/student_loan.py"
    },
    {
      "given": {
        "type": "grad",
        "amount": 60000,
        "plan": "standard",
        "wait": 6
      },
      "expect": {
        "years": 20,
        "before": 2421,
        "payment": 523.4559715803637,
        "interest": 65629.4331792873
      },
      "source": "hand calculation in content.mdx; Python 3 in docs/progress/WP-31/python/student_loan.py"
    },
    {
      "given": {
        "type": "other",
        "amount": 10000,
        "rate": 0,
        "fee": 2,
        "years": 5,
        "wait": 12
      },
      "expect": {
        "payment": 166.66666666666666,
        "interest": 0,
        "cash": 9800,
        "years": 5
      },
      "source": "hand calculation in content.mdx: 10,000 ÷ 60 at 0%"
    },
    {
      "given": {
        "type": "sub",
        "amount": 5500,
        "plan": "years",
        "years": 10,
        "wait": 48
      },
      "expect": {
        "feeAmount": 58.13,
        "payment": 62.50737060179917,
        "interest": 2000.8844722159947
      },
      "source": "FY27 sequester announcement: the fee on a $5,500 loan is $58.13 (truncated); hand calculation in content.mdx"
    }
  ],
  "sources": [
    "Federal Student Aid, Interest Rates for Federal Direct Loans First Disbursed Between July 1, 2026 and June 30, 2027 (June 4, 2026). https://fsapartners.ed.gov/knowledge-center/library/electronic-announcements/2026-06-04/interest-rates-federal-direct-loans-first-disbursed-between-july-1-2026-and-june-30-2027",
    "Federal Student Aid, FY27 Sequester-Required Changes to the Title IV Student Aid Programs (May 13, 2026): loan fees. https://fsapartners.ed.gov/knowledge-center/library/electronic-announcements/2026-05-13/fy27-sequester-required-changes-title-iv-student-aid-programs",
    "20 U.S.C. 1087e(d)(7)(A)(i), standard repayment plan for loans made on or after July 1, 2026. https://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title20-section1087e&num=0&edition=prelim",
    "U.S. Department of Education, final rule of November 1, 2022 (effective July 1, 2023) ending interest capitalization not required by statute, including when a borrower first enters repayment. https://fsapartners.ed.gov/knowledge-center/library/federal-registers/2022-11-01/final-regulations-borrower-defense-repayment-pre-dispute-arbitration-interest-capitalization-total-and-permanent-disability-discharges-closed-school-discharges-public-service-loan-forgiveness-and",
    "34 CFR 685.211(a), order in which payments are applied: charges and collection costs, then outstanding interest, then principal. https://www.law.cornell.edu/cfr/text/34/685.211"
  ],
  "related": [
    "loan",
    "personal-loan",
    "loan-payoff",
    "amortization"
  ],
  "changelog": []
}
