<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.10.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>305</ContextCount>
  <ElementCount>433</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>92</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - 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-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementCondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementCondensedConsolidatedStatementsOfOperations</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - 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-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00405 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - 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>8</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00505 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/StatementConsolidatedStatementsOfCashFlowsParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10101 - 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>10</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10201 - 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>11</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10301 - 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>12</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10401 - 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>13</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Lease Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLeaseCommitments</Role>
      <ShortName>Lease Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Line of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLineOfCredit</Role>
      <ShortName>Line of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Equity Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityTransactions</Role>
      <ShortName>Equity Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>10901 - 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>18</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Redeemable Noncontrolling Interest</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRedeemableNoncontrollingInterest</Role>
      <ShortName>Redeemable Noncontrolling Interest</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11101 - 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>20</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Restructuring</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRestructuring</Role>
      <ShortName>Restructuring</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Severance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSeverance</Role>
      <ShortName>Severance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11401 - 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>23</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11501 - 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>24</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>11601 - Disclosure - Employee Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEmployeeBenefits</Role>
      <ShortName>Employee Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>11701 - 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>26</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>11801 - Disclosure - Quarterly Results of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureQuarterlyResultsOfOperationsUnaudited</Role>
      <ShortName>Quarterly Results of Operations (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>11901 - 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>28</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>20302 - 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>29</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Summary of Significant Accounting Policy (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPolicyTables</Role>
      <ShortName>Summary of Significant Accounting Policy (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>30403 - 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>31</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30503 - 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-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Lease Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLeaseCommitmentsTables</Role>
      <ShortName>Lease Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureLeaseCommitments</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>30903 - 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-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Redeemable Noncontrolling Interest (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRedeemableNoncontrollingInterestTables</Role>
      <ShortName>Redeemable Noncontrolling Interest (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureRedeemableNoncontrollingInterest</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Restructuring (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRestructuringTables</Role>
      <ShortName>Restructuring (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureRestructuring</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>31403 - Disclosure - Acquisitions and Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureAcquisitionsAndInvestmentsTables</Role>
      <ShortName>Acquisitions and Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureAcquisitionsAndInvestments</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>31703 - 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>38</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31803 - Disclosure - Quarterly Results of Operations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureQuarterlyResultsOfOperationsTables</Role>
      <ShortName>Quarterly Results of Operations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureQuarterlyResultsOfOperationsUnaudited</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40101 - 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>40</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureBasisOfPresentationDetails</Role>
      <ShortName>Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureBasisOfPresentation</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40301 - 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>42</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Summary of Significant Accounting Policies - Concentration Risk and Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationRiskAndInventoriesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Concentration Risk and Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Summary of Significant Accounting Policies - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40304 - Disclosure - Summary of Significant Accounting Policies - Intangibles and Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesIntangiblesAndGoodwillDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Intangibles and Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40305 - 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>46</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40306 - Disclosure - Summary of Significant Accounting Policies - Net Income Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesNetIncomePerCommonShareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Net Income Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40307 - Disclosure - Summary of Significant Accounting Policies - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40308 - Disclosure - Summary of Significant Accounting Policies - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40309 - Disclosure - Summary of Significant Accounting Policies - Recent Accounting Pronouncements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureSummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Recent Accounting Pronouncements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40401 - 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>51</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40501 - 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>52</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40502 - 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>53</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Income Taxes - Other (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesOtherDetails</Role>
      <ShortName>Income Taxes - Other (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40504 - Disclosure - Income Taxes - Tax Uncertanities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureIncomeTaxesTaxUncertanitiesDetails</Role>
      <ShortName>Income Taxes - Tax Uncertanities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Lease Commitments - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLeaseCommitmentsDebtDetails</Role>
      <ShortName>Lease Commitments - Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Lease Commitments- Capital Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLeaseCommitmentsCapitalLeasesDetails</Role>
      <ShortName>Lease Commitments- Capital Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40603 - Disclosure - Lease Commitments - Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLeaseCommitmentsOperatingLeasesDetails</Role>
      <ShortName>Lease Commitments - Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Line of Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureLineOfCreditDetails</Role>
      <ShortName>Line of Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureLineOfCredit</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Equity Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityTransactionsDetails</Role>
      <ShortName>Equity Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureEquityTransactions</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40901 - 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>61</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Equity Incentive Plan - Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanActivityDetails</Role>
      <ShortName>Equity Incentive Plan - Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40903 - 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>63</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40904 - Disclosure - Equity Incentive Plan - Other (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanOtherDetails</Role>
      <ShortName>Equity Incentive Plan - Other (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40905 - Disclosure - Equity Incentive Plan - Vesting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureEquityIncentivePlanVestingDetails</Role>
      <ShortName>Equity Incentive Plan - Vesting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Redeemable Noncontrolling Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRedeemableNoncontrollingInterestDetails</Role>
      <ShortName>Redeemable Noncontrolling Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureRedeemableNoncontrollingInterestTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Restructuring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRestructuringDetails</Role>
      <ShortName>Restructuring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureRestructuringTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Restructuring - operating expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureRestructuringOperatingExpensesDetails</Role>
      <ShortName>Restructuring - operating expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41301 - 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>70</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Acquisitions and Investments - Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureAcquisitionsAndInvestmentsInvestmentsDetails</Role>
      <ShortName>Acquisitions and Investments - Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>41402 - Disclosure - Acquisitions and Investments - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureAcquisitionsAndInvestmentsAcquisitionsDetails</Role>
      <ShortName>Acquisitions and Investments - Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>41501 - 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>73</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>41601 - 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>74</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>41701 - 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>75</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>41801 - Disclosure - Quarterly Results of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.K12.com/role/DisclosureQuarterlyResultsOfOperationsDetails</Role>
      <ShortName>Quarterly Results of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.K12.com/role/DisclosureQuarterlyResultsOfOperationsTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="lrn-20180630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>41901 - 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>
      <Position>77</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-20180630.xml</File>
    <File>lrn-20180630.xsd</File>
    <File>lrn-20180630_cal.xml</File>
    <File>lrn-20180630_def.xml</File>
    <File>lrn-20180630_lab.xml</File>
    <File>lrn-20180630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2014-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
