<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>246</ContextCount>
  <ElementCount>496</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>61</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0002000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated balance sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated balance sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated balance sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated balance sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated statements of operations and comprehensive income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome</Role>
      <ShortName>Consolidated statements of operations and comprehensive income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated statements of stockholders' equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated statements of stockholders' equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated statements of cash flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated statements of cash flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Nature of operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/NatureOfOperations</Role>
      <ShortName>Nature of operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Transition period</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/TransitionPeriod</Role>
      <ShortName>Transition period</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/Acquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Investment in equity securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/InvestmentInEquitySecurities</Role>
      <ShortName>Investment in equity securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Goodwill and other intangible assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill and other intangible assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Accrued expenses and other current liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/AccruedExpensesAndOtherCurrentLiabilities</Role>
      <ShortName>Accrued expenses and other current liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Fair value of financial instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/FairValueOfFinancialInstruments</Role>
      <ShortName>Fair value of financial instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Preferred stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PreferredStock</Role>
      <ShortName>Preferred stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Stock-based compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-based compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Restructuring and other related costs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCosts</Role>
      <ShortName>Restructuring and other related costs</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Repurchase of common stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RepurchaseOfCommonStock</Role>
      <ShortName>Repurchase of common stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Employee benefit plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/EmployeeBenefitPlan</Role>
      <ShortName>Employee benefit plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Net income (loss) per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/NetIncomeLossPerShare</Role>
      <ShortName>Net income (loss) per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2120100 - Disclosure - Quarterly financial summary</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/QuarterlyFinancialSummary</Role>
      <ShortName>Quarterly financial summary</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2121100 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2301302 - Disclosure - Summary of significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Transition period (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/TransitionPeriodTables</Role>
      <ShortName>Transition period (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/TransitionPeriod</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/AcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/Acquisitions</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Goodwill and other intangible assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and other intangible assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssets</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/PropertyAndEquipment</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Accrued expenses and other current liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/AccruedExpensesAndOtherCurrentLiabilitiesTables</Role>
      <ShortName>Accrued expenses and other current liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/AccruedExpensesAndOtherCurrentLiabilities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Fair value of financial instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/FairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair value of financial instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/FairValueOfFinancialInstruments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/Debt</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Income taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesTables</Role>
      <ShortName>Income taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/IncomeTaxes</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Stock-based compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-based compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/StockBasedCompensation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2314301 - Disclosure - Restructuring and other related costs (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCostsTables</Role>
      <ShortName>Restructuring and other related costs (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCosts</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2318301 - Disclosure - Net income (loss) per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/NetIncomeLossPerShareTables</Role>
      <ShortName>Net income (loss) per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/NetIncomeLossPerShare</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2319301 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/Leases</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2320301 - Disclosure - Quarterly financial summary (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/QuarterlyFinancialSummaryTables</Role>
      <ShortName>Quarterly financial summary (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/QuarterlyFinancialSummary</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2401403 - Disclosure - Summary of significant accounting policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Summary of significant accounting policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Summary of significant accounting policies - Schedule of Concentrations of Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfConcentrationsOfRiskDetails</Role>
      <ShortName>Summary of significant accounting policies - Schedule of Concentrations of Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Summary of significant accounting policies - Schedule of Useful Lives by Major Asset Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfUsefulLivesByMajorAssetClassDetails</Role>
      <ShortName>Summary of significant accounting policies - Schedule of Useful Lives by Major Asset Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Summary of significant accounting policies - Net Sales in United States and Outside of United States (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesNetSalesInUnitedStatesAndOutsideOfUnitedStatesDetails</Role>
      <ShortName>Summary of significant accounting policies - Net Sales in United States and Outside of United States (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2401407 - Disclosure - Summary of significant accounting policies - Long-Lived Assets in United States and Outside of United States (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesLongLivedAssetsInUnitedStatesAndOutsideOfUnitedStatesDetails</Role>
      <ShortName>Summary of significant accounting policies - Long-Lived Assets in United States and Outside of United States (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2401408 - Disclosure - Summary of significant accounting policies - Reconciliation of Sales Allowances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/SummaryOfSignificantAccountingPoliciesReconciliationOfSalesAllowancesDetails</Role>
      <ShortName>Summary of significant accounting policies - Reconciliation of Sales Allowances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Transition period (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/TransitionPeriodDetails</Role>
      <ShortName>Transition period (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/TransitionPeriodTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Investment in equity securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/InvestmentInEquitySecuritiesAdditionalInformationDetails</Role>
      <ShortName>Investment in equity securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/AcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/AcquisitionsTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Goodwill and other intangible assets - Information Regarding Company's Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssetsInformationRegardingCompanysGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and other intangible assets - Information Regarding Company's Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Goodwill and other intangible assets - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssetsAdditionalInformationDetails</Role>
      <ShortName>Goodwill and other intangible assets - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Goodwill and other intangible assets - Estimated Future Amortization Expense Related to Finite-lived Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAmortizationExpenseRelatedToFiniteLivedIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and other intangible assets - Estimated Future Amortization Expense Related to Finite-lived Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Property and equipment  - Summary of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PropertyAndEquipmentSummaryOfPropertyAndEquipmentDetails</Role>
      <ShortName>Property and equipment  - Summary of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Property and equipment  - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PropertyAndEquipmentAdditionalInformationDetails</Role>
      <ShortName>Property and equipment  - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Accrued expenses and other current liabilities - Summary of Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/AccruedExpensesAndOtherCurrentLiabilitiesSummaryOfAccruedExpensesDetails</Role>
      <ShortName>Accrued expenses and other current liabilities - Summary of Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Fair value of financial instruments - Summary of Fair Value of Financial Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/FairValueOfFinancialInstrumentsSummaryOfFairValueOfFinancialLiabilitiesDetails</Role>
      <ShortName>Fair value of financial instruments - Summary of Fair Value of Financial Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Debt - Schedule of Outstanding Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DebtScheduleOfOutstandingDebtDetails</Role>
      <ShortName>Debt - Schedule of Outstanding Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Debt - Schedule of Aggregate Future Minimum Principal Payments on the Term Loan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DebtScheduleOfAggregateFutureMinimumPrincipalPaymentsOnTermLoanDetails</Role>
      <ShortName>Debt - Schedule of Aggregate Future Minimum Principal Payments on the Term Loan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2410405 - Disclosure - Debt - Schedule of Components of Interest Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/DebtScheduleOfComponentsOfInterestExpenseDetails</Role>
      <ShortName>Debt - Schedule of Components of Interest Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Income taxes  - Schedule of Components of Income (Loss) Before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfComponentsOfIncomeLossBeforeIncomeTaxesDetails</Role>
      <ShortName>Income taxes  - Schedule of Components of Income (Loss) Before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Income taxes - Schedule of Components of (Provision) Benefit for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfComponentsOfProvisionBenefitForIncomeTaxesDetails</Role>
      <ShortName>Income taxes - Schedule of Components of (Provision) Benefit for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2412404 - Disclosure - Income taxes - Schedule of Reconciliation of Federal Statutory Rate to Company's Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfReconciliationOfFederalStatutoryRateToCompanysEffectiveTaxRateDetails</Role>
      <ShortName>Income taxes - Schedule of Reconciliation of Federal Statutory Rate to Company's Effective Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2412405 - Disclosure - Income taxes - Schedule of Components of Net Deferred Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfComponentsOfNetDeferredTaxesDetails</Role>
      <ShortName>Income taxes - Schedule of Components of Net Deferred Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2412406 - Disclosure - Income taxes - Schedule of Deferred Tax Assets and Liabilities Within the Same Jurisdiction (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfDeferredTaxAssetsAndLiabilitiesWithinSameJurisdictionDetails</Role>
      <ShortName>Income taxes - Schedule of Deferred Tax Assets and Liabilities Within the Same Jurisdiction (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2412407 - Disclosure - Income taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2412408 - Disclosure - Income taxes - Schedule of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/IncomeTaxesScheduleOfUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Income taxes - Schedule of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2413401 - Disclosure - Preferred stock - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/PreferredStockAdditionalInformationDetails</Role>
      <ShortName>Preferred stock - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Stock-based compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Stock-based compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Stock-based compensation - Summary of Service-based Stock Option Activity and Related Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfServiceBasedStockOptionActivityAndRelatedInformationDetails</Role>
      <ShortName>Stock-based compensation - Summary of Service-based Stock Option Activity and Related Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2413404 - Disclosure - Stock-based compensation - Summary of Additional Information Relating to Service-based Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfAdditionalInformationRelatingToServiceBasedOptionsDetails</Role>
      <ShortName>Stock-based compensation - Summary of Additional Information Relating to Service-based Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2413405 - Disclosure - Stock-based compensation - Summary of Weighted-average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfWeightedAverageAssumptionsDetails</Role>
      <ShortName>Stock-based compensation - Summary of Weighted-average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2413406 - Disclosure - Stock-based compensation - Summary of Performance-based and Market-based Stock Option Activity and Related Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfPerformanceBasedAndMarketBasedStockOptionActivityAndRelatedInformationDetails</Role>
      <ShortName>Stock-based compensation - Summary of Performance-based and Market-based Stock Option Activity and Related Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2413407 - Disclosure - Stock-based compensation - Summary of Additional Information Relating to Performance-based and Market-based Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfAdditionalInformationRelatingToPerformanceBasedAndMarketBasedStockOptionsDetails</Role>
      <ShortName>Stock-based compensation - Summary of Additional Information Relating to Performance-based and Market-based Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2413408 - Disclosure - Stock-based compensation - Summary of Restricted Stock Unit Activity and Related Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationSummaryOfRestrictedStockUnitActivityAndRelatedInformationDetails</Role>
      <ShortName>Stock-based compensation - Summary of Restricted Stock Unit Activity and Related Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2413409 - Disclosure - Stock-based compensation - Additional Information Related to RSAs and RSUs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/StockBasedCompensationAdditionalInformationRelatedToRsasAndRsusDetails</Role>
      <ShortName>Stock-based compensation - Additional Information Related to RSAs and RSUs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2414402 - Disclosure - Restructuring and other related costs - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCostsNarrativeDetails</Role>
      <ShortName>Restructuring and other related costs - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2414403 - Disclosure - Restructuring and other related costs - Restructuring expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCostsRestructuringExpensesDetails</Role>
      <ShortName>Restructuring and other related costs - Restructuring expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2414404 - Disclosure - Restructuring and other related costs - Restructuring related liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RestructuringAndOtherRelatedCostsRestructuringRelatedLiabilitiesDetails</Role>
      <ShortName>Restructuring and other related costs - Restructuring related liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2415401 - Disclosure - Repurchase of common stock - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/RepurchaseOfCommonStockNarrativeDetails</Role>
      <ShortName>Repurchase of common stock - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2417401 - Disclosure - Employee benefit plan  - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/EmployeeBenefitPlanAdditionalInformationDetails</Role>
      <ShortName>Employee benefit plan  - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2418402 - Disclosure - Net income (loss) per share - Reconciliation of Numerator and Denominator in Basic and Diluted Net Income (Loss) Per Common Share Computations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/NetIncomeLossPerShareReconciliationOfNumeratorAndDenominatorInBasicAndDilutedNetIncomeLossPerCommonShareComputationsDetails</Role>
      <ShortName>Net income (loss) per share - Reconciliation of Numerator and Denominator in Basic and Diluted Net Income (Loss) Per Common Share Computations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.elfcosmetics.com/role/NetIncomeLossPerShareTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2419402 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2419403 - Disclosure - Leases - Balance Sheet Line Items (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesBalanceSheetLineItemsDetails</Role>
      <ShortName>Leases - Balance Sheet Line Items (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2419404 - Disclosure - Leases - Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesComponentsOfLeaseExpenseDetails</Role>
      <ShortName>Leases - Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2419405 - Disclosure - Leases - Future Minimum Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>Leases - Future Minimum Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2419406 - Disclosure - Leases - Weighted Average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/LeasesWeightedAverageAssumptionsDetails</Role>
      <ShortName>Leases - Weighted Average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2420402 - Disclosure - Quarterly financial summary - Schedule of Unaudited Quarterly Results (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.elfcosmetics.com/role/QuarterlyFinancialSummaryScheduleOfUnauditedQuarterlyResultsDetails</Role>
      <ShortName>Quarterly financial summary - Schedule of Unaudited Quarterly Results (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="elf-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - elf-20200331.xml</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - elf-20200331.xml</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>elf-20200331.xml</File>
    <File>elf-20200331.xsd</File>
    <File>elf-20200331_cal.xml</File>
    <File>elf-20200331_def.xml</File>
    <File>elf-20200331_lab.xml</File>
    <File>elf-20200331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
