<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="lope-20231215.xsd" xlink:type="simple"/>
    <context id="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001434588</identifier>
        </entity>
        <period>
            <startDate>2023-12-15</startDate>
            <endDate>2023-12-15</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_-Li-PnIEwEyKdozBS1pS-w_2_1">0001434588</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_7wIXb6pUAE-hC4vwrN3nBQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_eCmNm5fNO02tZgboxYCgNQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_RWf7IxT8Fk2epnx6IDh0_Q">2023-12-15</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_fnNqGhalgEe1WKRHhy853A">Grand Canyon Education,&#160;Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_liDcjuhs2UeO2zNgPaLfUQ_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_2efFo2HVvEi9ay66iHpgYw_1_2">001-34211</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_nrekX9Ao7UG34UP_N8P40A_1_4">20-3356009</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_mg8IMUknC0eCAZV8RE5zNg_1_0">2600 W. Camelback Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_19T3XGTp6Um8m4YJFG1oUg">Phoenix</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_d08xn7Wc7k6OCfkAUHqAVw">AZ</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_w9K7YRef50aEOHZIdRX3gA_2_1">85017</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_CgI49U9KD02c4cAKryWF4Q">602</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_OJmFUBvm1UaVdK1X--TCKQ">247-4400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_K7N4gUSz4EO8JGOcX8WS5g">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_VXBqjHn5OUSs8bH78BB7fA">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_ZEn15LOhkE2lb6R_cmyXCA">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr__15eML3BIEqHSXwRWx8uAg">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_mpncwhoZ4E230Kq44AnBHA_1_0">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_Jp4-hv-MKUamhlHS9uwB7Q_1_1">LOPE</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Tc_w6SFyO4DJk2D7GQbBeiYIw_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_12_15_2023_To_12_15_2023_MQ2moE_440uuDp2Ybtj22A"
      id="Narr_zQxsQQyT1UeFfvfgtInJbA">false</dei:EntityEmergingGrowthCompany>
</xbrl>
