<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>307</ContextCount>
  <ElementCount>495</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>90</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - Description of the Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDescriptionOfBusiness</Role>
      <ShortName>Description of the Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - Property and Equipment and Capitalized Software and Curriculum</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosurePropertyAndEquipmentAndCapitalizedSoftwareAndCurriculum</Role>
      <ShortName>Property and Equipment and Capitalized Software and Curriculum</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - Finance and Operating Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeases</Role>
      <ShortName>Finance and Operating Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - Credit Facility</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureCreditFacility</Role>
      <ShortName>Credit Facility</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - Equity Incentive Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlan</Role>
      <ShortName>Equity Incentive Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - Severance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSeverance</Role>
      <ShortName>Severance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - Acquisitions and Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureAcquisitionsAndInvestments</Role>
      <ShortName>Acquisitions and Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211401 - Disclosure - Employee Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEmployeeBenefits</Role>
      <ShortName>Employee Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - Supplemental Disclosure of Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSupplementalDisclosureOfCashFlowInformation</Role>
      <ShortName>Supplemental Disclosure of Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995211601 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureScheduleIiValuationAndQualifyingAccounts</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>99920302 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - Property and Equipment and Capitalized Software and Curriculum (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosurePropertyAndEquipmentAndCapitalizedSoftwareAndCurriculumTables</Role>
      <ShortName>Property and Equipment and Capitalized Software and Curriculum (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosurePropertyAndEquipmentAndCapitalizedSoftwareAndCurriculum</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - Finance and Operating Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesTables</Role>
      <ShortName>Finance and Operating Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureFinanceAndOperatingLeases</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureDebt</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - Equity Incentive Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanTables</Role>
      <ShortName>Equity Incentive Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureEquityIncentivePlan</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99931503 - Disclosure - Supplemental Disclosure of Cash Flow Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSupplementalDisclosureOfCashFlowInformationTables</Role>
      <ShortName>Supplemental Disclosure of Cash Flow Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSupplementalDisclosureOfCashFlowInformation</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - Description of the Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDescriptionOfBusinessDetails</Role>
      <ShortName>Description of the Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureDescriptionOfBusiness</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - Summary of Significant Accounting Policies - Segment Reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesSegmentReportingDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Segment Reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - Summary of Significant Accounting Policies - Revenue Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Revenue Recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99940303 - Disclosure - Summary of Significant Accounting Policies - Disaggregated Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDisaggregatedRevenuesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Disaggregated Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99940304 - Disclosure - Summary of Significant Accounting Policies - Concentration of Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationOfCustomersDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Concentration of Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99940305 - Disclosure - Summary of Significant Accounting Policies - Contract Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesContractBalancesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Contract Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99940306 - Disclosure - Summary of Significant Accounting Policies - Performance Obligations and Research and Development Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPerformanceObligationsAndResearchAndDevelopmentCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Performance Obligations and Research and Development Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99940307 - Disclosure - Summary of Significant Accounting Policies - Investments in Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesInvestmentsInMarketableSecuritiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Investments in Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99940308 - Disclosure - Summary of Significant Accounting Policies - Allowance for Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesAllowanceForCreditLossesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Allowance for Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99940309 - Disclosure - Summary of Significant Accounting Policies - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesInventoriesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99940310 - Disclosure - Summary of Significant Accounting Policies - Capitalized Software-as-a-Service Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedSoftwareAsServiceCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Capitalized Software-as-a-Service Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940311 - Disclosure - Summary of Significant Accounting Policies - Property and Equipment and Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPropertyAndEquipmentAndLeasesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Property and Equipment and Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940312 - Disclosure - Summary of Significant Accounting Policies - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940313 - Disclosure - Summary of Significant Accounting Policies - Advertising and Marketing Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesAdvertisingAndMarketingCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Advertising and Marketing Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940314 - Disclosure - Summary of Significant Accounting Policies - Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueMeasurementDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940315 - Disclosure - Summary of Significant Accounting Policies - Net Income (Loss) Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesNetIncomeLossPerCommonShareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Net Income (Loss) Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - Property and Equipment and Capitalized Software and Curriculum (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosurePropertyAndEquipmentAndCapitalizedSoftwareAndCurriculumDetails</Role>
      <ShortName>Property and Equipment and Capitalized Software and Curriculum (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosurePropertyAndEquipmentAndCapitalizedSoftwareAndCurriculumTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - Income Taxes - Deferred (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesDeferredDetails</Role>
      <ShortName>Income Taxes - Deferred (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - Income Taxes - Carryforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesCarryforwardDetails</Role>
      <ShortName>Income Taxes - Carryforward (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940503 - Disclosure - Income Taxes - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940504 - Disclosure - Income Taxes - Tax Uncertainties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesTaxUncertaintiesDetails</Role>
      <ShortName>Income Taxes - Tax Uncertainties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - Finance and Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesDetails</Role>
      <ShortName>Finance and Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940602 - Disclosure - Finance and Operating Leases - Finance leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesFinanceLeasesDetails</Role>
      <ShortName>Finance and Operating Leases - Finance leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99940603 - Disclosure - Finance and Operating Leases - Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesOperatingLeasesDetails</Role>
      <ShortName>Finance and Operating Leases - Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99940604 - Disclosure - Finance and Operating Leases - Sub Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesSubLeasesDetails</Role>
      <ShortName>Finance and Operating Leases - Sub Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99940605 - Disclosure - Finance and Operating Leases - Lease cost and other information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureFinanceAndOperatingLeasesLeaseCostAndOtherInformationDetails</Role>
      <ShortName>Finance and Operating Leases - Lease cost and other information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureDebtTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99940702 - Disclosure - Debt - Maturities of long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDebtMaturitiesOfLongTermDebtDetails</Role>
      <ShortName>Debt - Maturities of long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940703 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureDebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureCreditFacilityDetails</Role>
      <ShortName>Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureCreditFacility</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - Equity Incentive Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanDetails</Role>
      <ShortName>Equity Incentive Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureEquityIncentivePlanTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - Equity Incentive Plan - Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanStockOptionsDetails</Role>
      <ShortName>Equity Incentive Plan - Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99940903 - Disclosure - Equity Incentive Plan - Relationship (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanRelationshipDetails</Role>
      <ShortName>Equity Incentive Plan - Relationship (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99940904 - Disclosure - Equity Incentive Plan - Restricted Stock Awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanRestrictedStockAwardsDetails</Role>
      <ShortName>Equity Incentive Plan - Restricted Stock Awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99940905 - Disclosure - Equity Incentive Plan - Performance Share Units ("PSU") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanPerformanceShareUnitspsuDetails</Role>
      <ShortName>Equity Incentive Plan - Performance Share Units ("PSU") (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99940906 - Disclosure - Equity Incentive Plan - Long Term Incentive Plan (LTIP) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanLongTermIncentivePlanLtipDetails</Role>
      <ShortName>Equity Incentive Plan - Long Term Incentive Plan (LTIP) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99940907 - Disclosure - Equity Incentive Plan - Deferred Stock Units ("DSU") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanDeferredStockUnitsdsuDetails</Role>
      <ShortName>Equity Incentive Plan - Deferred Stock Units ("DSU") (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - Severance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSeveranceDetails</Role>
      <ShortName>Severance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSeverance</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - Acquisitions and Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureAcquisitionsAndInvestmentsDetails</Role>
      <ShortName>Acquisitions and Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureAcquisitionsAndInvestments</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>99941401 - Disclosure - Employee Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEmployeeBenefitsDetails</Role>
      <ShortName>Employee Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureEmployeeBenefits</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>99941501 - Disclosure - Supplemental Disclosure of Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSupplementalDisclosureOfCashFlowInformationDetails</Role>
      <ShortName>Supplemental Disclosure of Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSupplementalDisclosureOfCashFlowInformationTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="lrn-20250630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>99941601 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureScheduleIiValuationAndQualifyingAccountsDetails</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureScheduleIiValuationAndQualifyingAccounts</ParentRole>
      <Position>78</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>lrn-20250630.xsd</File>
    <File>lrn-20250630_cal.xml</File>
    <File>lrn-20250630_def.xml</File>
    <File>lrn-20250630_lab.xml</File>
    <File>lrn-20250630_pre.xml</File>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="lrn-20250630x10k.htm">lrn-20250630x10k.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>lrn-20250630x10k001.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="1107">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2024</BaseTaxonomy>
    <BaseTaxonomy items="40">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
