<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>68</ContextCount>
  <ElementCount>32</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>9</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>1</UnitCount>
  <MyReports>
    <Report instance="ny20083582x1_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ny20083582x1_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.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>2</Position>
    </Report>
    <Report instance="ny20083582x1_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995443 - Disclosure - Award Timing Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure</Role>
      <ShortName>Award Timing Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ny20083582x1_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.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>4</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-20261210.xsd</File>
    <File>lrn-20261210_def.xml</File>
    <File doctype="DEF 14A" isProxy="true" isUsgaap="true" original="ny20083582x1_def14a.htm">ny20083582x1_def14a.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>logo_stride.jpg</File>
    <File>ny20083582x1_adjebitda.jpg</File>
    <File>ny20083582x1_adjopincome.jpg</File>
    <File>ny20083582x1_alvarez.jpg</File>
    <File>ny20083582x1_blackman.jpg</File>
    <File>ny20083582x1_bonusearned.jpg</File>
    <File>ny20083582x1_bonusplan2.jpg</File>
    <File>ny20083582x1_dhaggart.jpg</File>
    <File>ny20083582x1_fink.jpg</File>
    <File>ny20083582x1_ggmcmullensr.jpg</File>
    <File>ny20083582x1_goldthwaite.jpg</File>
    <File>ny20083582x1_guttentag.jpg</File>
    <File>ny20083582x1_incomenet.jpg</File>
    <File>ny20083582x1_incomeop.jpg</File>
    <File>ny20083582x1_knowling.jpg</File>
    <File>ny20083582x1_lawrence.jpg</File>
    <File>ny20083582x1_mcfadden.jpg</File>
    <File>ny20083582x1_pc1.jpg</File>
    <File>ny20083582x1_pc2.jpg</File>
    <File>ny20083582x1_philo.jpg</File>
    <File>ny20083582x1_piechartx1.jpg</File>
    <File>ny20083582x1_process.jpg</File>
    <File>ny20083582x1_pvpchart01.jpg</File>
    <File>ny20083582x1_pvpchart02.jpg</File>
    <File>ny20083582x1_pvpchart03.jpg</File>
    <File>ny20083582x1_revenue.jpg</File>
    <File>ny20083582x1_rsmith.jpg</File>
    <File>ny20083582x1_shepherd.jpg</File>
    <File>ny20083582x1_table01x1.jpg</File>
    <File>ny20083582x1_verbrugge.jpg</File>
    <File>sig_rknowlingjr.jpg</File>
    <File>sig_rknowlingjrx1.jpg</File>
    <File>sig_sbfinkx1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="5">http://fasb.org/us-gaap/2026</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2026</BaseTaxonomy>
    <BaseTaxonomy items="140">http://xbrl.sec.gov/ecd/2026</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
