<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="lope-20250219.xsd" xlink:type="simple"/>
    <context id="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001434588</identifier>
        </entity>
        <period>
            <startDate>2025-02-19</startDate>
            <endDate>2025-02-19</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_RHjgEUFPKkS_FSYaoUUt_g_2_1">0001434588</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_nLj8bM-mHkWZgrsbIFd1jQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_o7BlKOV6PUi7dGR-OLtkKQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_OC2a1XRXiUC8dqpKF_cXGQ">2025-02-19</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_ntklziTXTEqxZNRTWjB91Q">Grand Canyon Education,&#160;Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_HmYkqMb3XkKnjp2Kowkyzw_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_OOUkeAu5Qk6SbOMrv20_vA_1_2">001-34211</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_xF_Naya5W0KeJXfE1dGbAw_1_4">20-3356009</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_ar_9XT7HokKf7rM7hvGyMA_1_0">2600 W. Camelback Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_OsgCyFhRm0C8RSh2vTq32A">Phoenix</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_gt3tJzOYMk6LnTb5u7PwKg">AZ</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_PIqeBYROGU2Nlunyr812dg_2_1">85017</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_NIYmazwPFkSIGVoh5zHH3A">602</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_p6SaQq0kIkSNIG1xOpbwpg">247-4400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_xNhvRDFIG0qpfla6RFaVRw">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_SIQpv6nt3UuKVkMLXveCjA">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_DKKertm_O0OWi57hYWuTVg">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_13L30KEg2EqeluChbDXD2Q">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_RRSOd9aRUUa8quHEzb24bg_1_0">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_i5qDiMkyzkK_8ylAM9wVfw_1_1">LOPE</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Tc_CwKUJI96OEeoBYuIvLc6rQ_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_2_19_2025_To_2_19_2025_5EueUI8WxUO9RHjFMw7VYQ"
      id="Narr_GYZPmgdui0i5HkuFKnSqiw">false</dei:EntityEmergingGrowthCompany>
</xbrl>
