| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.20.2 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 178 </ContextCount> |
| <ElementCount> 413 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> false </FootnotesReported> |
| <SegmentCount> 56 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 9 </UnitCount> |
| <MyReports> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 00090 - Document - Document and Entity Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DocumentDocumentAndEntityInformation </Role> |
| | | <ShortName> Document and Entity Information </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 1 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 00100 - Statement - Condensed Consolidated Balance Sheets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/StatementCondensedConsolidatedBalanceSheets </Role> |
| | | <ShortName> Condensed Consolidated Balance Sheets </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 2 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <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.gms.com/role/StatementCondensedConsolidatedBalanceSheetsParenthetical </Role> |
| | | <ShortName> Condensed Consolidated Balance Sheets (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 3 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 00200 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Income </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/StatementCondensedConsolidatedStatementsOfOperationsAndComprehensiveIncome </Role> |
| | | <ShortName> Condensed Consolidated Statements of Operations and Comprehensive Income </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 4 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 00300 - Statement - Condensed Consolidated Statements of Stockholders' Equity (Unaudited) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/StatementCondensedConsolidatedStatementsOfStockholdersEquityUnaudited </Role> |
| | | <ShortName> Condensed Consolidated Statements of Stockholders' Equity (Unaudited) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 5 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 00400 - Statement - Condensed Consolidated Statements of Cash Flows </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/StatementCondensedConsolidatedStatementsOfCashFlows </Role> |
| | | <ShortName> Condensed Consolidated Statements of Cash Flows </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 10101 - Disclosure - Business, Basis of Presentation and Summary of Significant Accounting Policies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPolicies </Role> |
| | | <ShortName> Business, Basis of Presentation and Summary of Significant Accounting Policies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 7 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 10201 - Disclosure - Revenue </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureRevenue </Role> |
| | | <ShortName> Revenue </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 8 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 10301 - Disclosure - Accounts Receivable </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureAccountsReceivable </Role> |
| | | <ShortName> Accounts Receivable </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 9 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 10401 - Disclosure - Goodwill and Intangible Assets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssets </Role> |
| | | <ShortName> Goodwill and Intangible Assets </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 10 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 10501 - Disclosure - Long-Term Debt </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebt </Role> |
| | | <ShortName> Long-Term Debt </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 11 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 10601 - Disclosure - Leases </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeases </Role> |
| | | <ShortName> Leases </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 12 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 10701 - Disclosure - Income Taxes </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureIncomeTaxes </Role> |
| | | <ShortName> Income Taxes </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 13 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 10801 - Disclosure - Stockholders' Equity </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockholdersEquity </Role> |
| | | <ShortName> Stockholders' Equity </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 14 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 10901 - Disclosure - Equity-Based Compensation </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensation </Role> |
| | | <ShortName> Equity-Based Compensation </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 11001 - Disclosure - Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockAppreciationRightsDeferredCompensationAndRedeemableNoncontrollingInterests </Role> |
| | | <ShortName> Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 11101 - Disclosure - Fair Value Measurements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureFairValueMeasurements </Role> |
| | | <ShortName> Fair Value Measurements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 17 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 11201 - Disclosure - Transactions With Related Parties </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureTransactionsWithRelatedParties </Role> |
| | | <ShortName> Transactions With Related Parties </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 18 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 11301 - Disclosure - Commitments and Contingencies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureCommitmentsAndContingencies </Role> |
| | | <ShortName> Commitments and Contingencies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 11401 - Disclosure - Segments </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegments </Role> |
| | | <ShortName> Segments </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 20 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 11501 - Disclosure - Earnings Per Common Share </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEarningsPerCommonShare </Role> |
| | | <ShortName> Earnings Per Common Share </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 20102 - Disclosure - Business, Basis of Presentation and Summary of Significant Accounting Policies (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies </Role> |
| | | <ShortName> Business, Basis of Presentation and Summary of Significant Accounting Policies (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPolicies </ParentRole> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 30303 - Disclosure - Accounts Receivable (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureAccountsReceivableTables </Role> |
| | | <ShortName> Accounts Receivable (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureAccountsReceivable </ParentRole> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 30403 - Disclosure - Goodwill and Intangible Assets (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsTables </Role> |
| | | <ShortName> Goodwill and Intangible Assets (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssets </ParentRole> |
| | | <Position> 24 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 30503 - Disclosure - Long-Term Debt (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtTables </Role> |
| | | <ShortName> Long-Term Debt (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureLongTermDebt </ParentRole> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 30603 - Disclosure - Leases (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeasesTables </Role> |
| | | <ShortName> Leases (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureLeases </ParentRole> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 30803 - Disclosure - Stockholders' Equity (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockholdersEquityTables </Role> |
| | | <ShortName> Stockholders' Equity (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureStockholdersEquity </ParentRole> |
| | | <Position> 27 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 30903 - Disclosure - Equity-Based Compensation - (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensationTables </Role> |
| | | <ShortName> Equity-Based Compensation - (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureEquityBasedCompensation </ParentRole> |
| | | <Position> 28 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 31003 - Disclosure - Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockAppreciationRightsDeferredCompensationAndRedeemableNoncontrollingInterestsTables </Role> |
| | | <ShortName> Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureStockAppreciationRightsDeferredCompensationAndRedeemableNoncontrollingInterests </ParentRole> |
| | | <Position> 29 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 31103 - Disclosure - Fair Value Measurements (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureFairValueMeasurementsTables </Role> |
| | | <ShortName> Fair Value Measurements (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureFairValueMeasurements </ParentRole> |
| | | <Position> 30 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 31403 - Disclosure - Segments (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsTables </Role> |
| | | <ShortName> Segments (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureSegments </ParentRole> |
| | | <Position> 31 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 31503 - Disclosure - Earnings Per Common Share (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEarningsPerCommonShareTables </Role> |
| | | <ShortName> Earnings Per Common Share (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureEarningsPerCommonShare </ParentRole> |
| | | <Position> 32 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 40101 - Disclosure - Business, Basis of Presentation and Summary of Significant Accounting Policies - Business (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPoliciesBusinessDetails </Role> |
| | | <ShortName> Business, Basis of Presentation and Summary of Significant Accounting Policies - Business (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies </ParentRole> |
| | | <Position> 33 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 40102 - Disclosure - Business, Basis of Presentation and Summary of Significant Accounting Policies - Insurance Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureBusinessBasisOfPresentationAndSummaryOfSignificantAccountingPoliciesInsuranceLiabilitiesDetails </Role> |
| | | <ShortName> Business, Basis of Presentation and Summary of Significant Accounting Policies - Insurance Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 34 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 40201 - Disclosure - Revenue (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureRevenueDetails </Role> |
| | | <ShortName> Revenue (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureRevenue </ParentRole> |
| | | <Position> 35 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 40301 - Disclosure - Accounts Receivable - Trade Accounts And Notes Receivable (Details) </LongName> |
| | | <ReportType> Notes </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureAccountsReceivableTradeAccountsAndNotesReceivableDetails </Role> |
| | | <ShortName> Accounts Receivable - Trade Accounts And Notes Receivable (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 36 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 40302 - Disclosure - Accounts Receivable - Change In Allowance (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureAccountsReceivableChangeInAllowanceDetails </Role> |
| | | <ShortName> Accounts Receivable - Change In Allowance (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 37 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 40401 - Disclosure - Goodwill and Intangible Assets - Goodwill (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsGoodwillDetails </Role> |
| | | <ShortName> Goodwill and Intangible Assets - Goodwill (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 38 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 40402 - Disclosure - Goodwill and Intangible Assets - Definite-Lived Intangible Assets (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsDefiniteLivedIntangibleAssetsDetails </Role> |
| | | <ShortName> Goodwill and Intangible Assets - Definite-Lived Intangible Assets (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 39 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 40403 - Disclosure - Goodwill and Intangible Assets - Amortization (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsAmortizationDetails </Role> |
| | | <ShortName> Goodwill and Intangible Assets - Amortization (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 40 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 40404 - Disclosure - Goodwill and Intangible Assets - Estimated Aggregate Amortization Expense (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsEstimatedAggregateAmortizationExpenseDetails </Role> |
| | | <ShortName> Goodwill and Intangible Assets - Estimated Aggregate Amortization Expense (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 41 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 40405 - Disclosure - Goodwill and Intangible Assets - Indefinite-Lived Intangible Assets (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureGoodwillAndIntangibleAssetsIndefiniteLivedIntangibleAssetsDetails </Role> |
| | | <ShortName> Goodwill and Intangible Assets - Indefinite-Lived Intangible Assets (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 40501 - Disclosure - Long-Term Debt - Components (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtComponentsDetails </Role> |
| | | <ShortName> Long-Term Debt - Components (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 43 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 40502 - Disclosure - Long-Term Debt - Acquisition Debt (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtAcquisitionDebtDetails </Role> |
| | | <ShortName> Long-Term Debt - Acquisition Debt (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 44 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 40503 - Disclosure - Long-Term Debt - Asset-Based Lending Facility (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtAssetBasedLendingFacilityDetails </Role> |
| | | <ShortName> Long-Term Debt - Asset-Based Lending Facility (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 45 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 40504 - Disclosure - Long-Term Debt - Canadian Revolving Credit Facility (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtCanadianRevolvingCreditFacilityDetails </Role> |
| | | <ShortName> Long-Term Debt - Canadian Revolving Credit Facility (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 46 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 40505 - Disclosure - Long-Term Debt - Maturities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLongTermDebtMaturitiesDetails </Role> |
| | | <ShortName> Long-Term Debt - Maturities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 47 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 40601 - Disclosure - Leases (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeasesDetails </Role> |
| | | <ShortName> Leases (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureLeasesTables </ParentRole> |
| | | <Position> 48 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 40602 - Disclosure - Leases - Supplemental cash flow information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeasesSupplementalCashFlowInformationDetails </Role> |
| | | <ShortName> Leases - Supplemental cash flow information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 49 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 40603 - Disclosure - Leases - Other information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeasesOtherInformationDetails </Role> |
| | | <ShortName> Leases - Other information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 50 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 40604 - Disclosure - Leases - Future minimum lease payments under non-cancellable leases (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureLeasesFutureMinimumLeasePaymentsUnderNonCancellableLeasesDetails </Role> |
| | | <ShortName> Leases - Future minimum lease payments under non-cancellable leases (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 51 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 40701 - Disclosure - Income Taxes (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureIncomeTaxesDetails </Role> |
| | | <ShortName> Income Taxes (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureIncomeTaxes </ParentRole> |
| | | <Position> 52 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 40801 - Disclosure - Stockholders' Equity - Exchangeable Shares, Share Repurchase Program and Secondary Public Offering (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockholdersEquityExchangeableSharesShareRepurchaseProgramAndSecondaryPublicOfferingDetails </Role> |
| | | <ShortName> Stockholders' Equity - Exchangeable Shares, Share Repurchase Program and Secondary Public Offering (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 53 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 40802 - Disclosure - Stockholders' Equity - Accumulated Other Comprehensive Loss (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockholdersEquityAccumulatedOtherComprehensiveLossDetails </Role> |
| | | <ShortName> Stockholders' Equity - Accumulated Other Comprehensive Loss (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 54 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 40901 - Disclosure - Equity-Based Compensation - Stock Option Activity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensationStockOptionActivityDetails </Role> |
| | | <ShortName> Equity-Based Compensation - Stock Option Activity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 55 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 40902 - Disclosure - Equity-Based Compensation - Black Scholes Options - Pricing Model (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensationBlackScholesOptionsPricingModelDetails </Role> |
| | | <ShortName> Equity-Based Compensation - Black Scholes Options - Pricing Model (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 56 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 40903 - Disclosure - Equity-Based Compensation - Restricted Stock Units (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensationRestrictedStockUnitsDetails </Role> |
| | | <ShortName> Equity-Based Compensation - Restricted Stock Units (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 57 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 40904 - Disclosure - Equity-Based Compensation - Employee Stock Purchase Plan (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEquityBasedCompensationEmployeeStockPurchasePlanDetails </Role> |
| | | <ShortName> Equity-Based Compensation - Employee Stock Purchase Plan (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 58 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 41001 - Disclosure - Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureStockAppreciationRightsDeferredCompensationAndRedeemableNoncontrollingInterestsDetails </Role> |
| | | <ShortName> Stock Appreciation Rights, Deferred Compensation and Redeemable Noncontrolling Interests (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureStockAppreciationRightsDeferredCompensationAndRedeemableNoncontrollingInterestsTables </ParentRole> |
| | | <Position> 59 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R60.htm </HtmlFileName> |
| | | <LongName> 41101 - Disclosure - Fair Value Measurements (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureFairValueMeasurementsDetails </Role> |
| | | <ShortName> Fair Value Measurements (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureFairValueMeasurementsTables </ParentRole> |
| | | <Position> 60 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R61.htm </HtmlFileName> |
| | | <LongName> 41201 - Disclosure - Transactions With Related Parties - Purchased Inventories (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureTransactionsWithRelatedPartiesPurchasedInventoriesDetails </Role> |
| | | <ShortName> Transactions With Related Parties - Purchased Inventories (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 61 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R62.htm </HtmlFileName> |
| | | <LongName> 41401 - Disclosure - Segments (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsDetails </Role> |
| | | <ShortName> Segments (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureSegmentsTables </ParentRole> |
| | | <Position> 62 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R63.htm </HtmlFileName> |
| | | <LongName> 41402 - Disclosure - Segments - Net Sales, Adjusted EBITDA and Certain Other Measures (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsNetSalesAdjustedEbitdaAndCertainOtherMeasuresDetails </Role> |
| | | <ShortName> Segments - Net Sales, Adjusted EBITDA and Certain Other Measures (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 63 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R64.htm </HtmlFileName> |
| | | <LongName> 41403 - Disclosure - Segments - Reconciliation of Net Income to Adjusted EBITDA (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsReconciliationOfNetIncomeToAdjustedEbitdaDetails </Role> |
| | | <ShortName> Segments - Reconciliation of Net Income to Adjusted EBITDA (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 64 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R65.htm </HtmlFileName> |
| | | <LongName> 41404 - Disclosure - Segments - Net Sales by Main Product Lines (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsNetSalesByMainProductLinesDetails </Role> |
| | | <ShortName> Segments - Net Sales by Main Product Lines (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 65 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R66.htm </HtmlFileName> |
| | | <LongName> 41405 - Disclosure - Segments - Net sales by major geographic area (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsNetSalesByMajorGeographicAreaDetails </Role> |
| | | <ShortName> Segments - Net sales by major geographic area (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 66 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R67.htm </HtmlFileName> |
| | | <LongName> 41406 - Disclosure - Segments - Property and equipment, net, by major geographic area (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureSegmentsPropertyAndEquipmentNetByMajorGeographicAreaDetails </Role> |
| | | <ShortName> Segments - Property and equipment, net, by major geographic area (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 67 </Position> |
| | | </Report> |
| | <Report instance="gms-20200731x10q.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R68.htm </HtmlFileName> |
| | | <LongName> 41501 - Disclosure - Earnings Per Common Share (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.gms.com/role/DisclosureEarningsPerCommonShareDetails </Role> |
| | | <ShortName> Earnings Per Common Share (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.gms.com/role/DisclosureEarningsPerCommonShareTables </ParentRole> |
| | | <Position> 68 </Position> |
| | | </Report> |
| | <Report> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <LongName> All Reports </LongName> |
| | | <ReportType> Book </ReportType> |
| | | <ShortName> All Reports </ShortName> |
| | | </Report> |
| | </MyReports> |
| <InputFiles> |
| | <File doctype="10-Q" original="gms-20200731x10q.htm"> gms-20200731x10q.htm </File> |
| | <File> gms-20200731.xsd </File> |
| | <File> gms-20200731_cal.xml </File> |
| | <File> gms-20200731_def.xml </File> |
| | <File> gms-20200731_lab.xml </File> |
| | <File> gms-20200731_pre.xml </File> |
| | <File> gms-20200731xex31d1.htm </File> |
| | <File> gms-20200731xex31d2.htm </File> |
| | <File> gms-20200731xex32d1.htm </File> |
| | <File> gms-20200731xex32d2.htm </File> |
| | </InputFiles> |
| <SupplementalFiles/> |
| <BaseTaxonomies> |
| | <BaseTaxonomy> http://fasb.org/us-gaap/2019-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://xbrl.sec.gov/country/2017-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://fasb.org/srt/2019-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://xbrl.sec.gov/dei/2019-01-31 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |