<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>349</ContextCount>
  <ElementCount>360</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>62</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Condensed Consolidated Statements Of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfOperations</Role>
      <ShortName>Condensed Consolidated Statements Of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Condensed Consolidated Statements Of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Condensed Consolidated Statements Of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1003501 - Statement - Condensed Consolidated Statements Of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Condensed Consolidated Statements Of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1004000 - Statement - Condensed Consolidated Statements Of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements Of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1004001 - Statement - Condensed Consolidated Statements Of Cash Flows Condensed Consolidated Statements of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfCashFlowsCondensedConsolidatedStatementsOfCashFlowsParenthetical</Role>
      <ShortName>Condensed Consolidated Statements Of Cash Flows Condensed Consolidated Statements of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1005000 - Statement - Condensed Consolidated Statements Of Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CondensedConsolidatedStatementsOfEquity</Role>
      <ShortName>Condensed Consolidated Statements Of Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Basis Of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/BasisOfPresentation</Role>
      <ShortName>Basis Of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - New Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/NewAccountingPronouncements</Role>
      <ShortName>New Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Revenue from Contracts with Customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomers</Role>
      <ShortName>Revenue from Contracts with Customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Acquisitions Of Businesses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/AcquisitionsOfBusinesses</Role>
      <ShortName>Acquisitions Of Businesses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Disposition of Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DispositionOfAssets</Role>
      <ShortName>Disposition of Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CommonStock</Role>
      <ShortName>Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Retirement Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RetirementPlans</Role>
      <ShortName>Retirement Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Subsequent Event Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/SubsequentEventSubsequentEvent</Role>
      <ShortName>Subsequent Event Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2205201 - Disclosure - Revenue from Contracts with Customers (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersPolicy</Role>
      <ShortName>Revenue from Contracts with Customers (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/NewAccountingPronouncements</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2211201 - Disclosure - Fair Value Measurements (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/FairValueMeasurementsPolicy</Role>
      <ShortName>Fair Value Measurements (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/NewAccountingPronouncements</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2216201 - Disclosure - Leases (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesPolicy</Role>
      <ShortName>Leases (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/NewAccountingPronouncements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2305302 - Disclosure - Revenue from Contracts with Customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersTables</Role>
      <ShortName>Revenue from Contracts with Customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomers</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Disposition of Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DispositionOfAssetsTables</Role>
      <ShortName>Disposition of Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/DispositionOfAssets</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/EarningsPerShare</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/Inventories</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/Debt</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2311302 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/FairValueMeasurements</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2314301 - Disclosure - Retirement Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RetirementPlansTables</Role>
      <ShortName>Retirement Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/RetirementPlans</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2315301 - Disclosure - Commitments and Contingencies Restructuring and Related Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CommitmentsAndContingenciesRestructuringAndRelatedActivitiesTables</Role>
      <ShortName>Commitments and Contingencies Restructuring and Related Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2316302 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/Leases</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2317301 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/SegmentInformation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2402401 - Disclosure - New Accounting Pronouncements New Accounting Pronouncements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/NewAccountingPronouncementsNewAccountingPronouncementsDetails</Role>
      <ShortName>New Accounting Pronouncements New Accounting Pronouncements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Revenue from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersDetails</Role>
      <ShortName>Revenue from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Revenue from Contracts with Customers - Schedule of Disaggregation of Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersScheduleOfDisaggregationOfRevenuesDetails</Role>
      <ShortName>Revenue from Contracts with Customers - Schedule of Disaggregation of Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2405405 - Disclosure - Revenue from Contracts with Customers - Schedule of Contract with Customer, Asset and Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersScheduleOfContractWithCustomerAssetAndLiabilityDetails</Role>
      <ShortName>Revenue from Contracts with Customers - Schedule of Contract with Customer, Asset and Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2405406 - Disclosure - Revenue from Contracts with Customers - Schedule of Revenue, Remaining Performance Obligation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersScheduleOfRevenueRemainingPerformanceObligationDetails</Role>
      <ShortName>Revenue from Contracts with Customers - Schedule of Revenue, Remaining Performance Obligation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2405407 - Disclosure - Revenue from Contracts with Customers - Schedule of Revenue. Remaining Performance Obligation, Expected Timing of Satisfaction (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RevenueFromContractsWithCustomersScheduleOfRevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionDetails</Role>
      <ShortName>Revenue from Contracts with Customers - Schedule of Revenue. Remaining Performance Obligation, Expected Timing of Satisfaction (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2406401 - Disclosure - Acquisitions Of Businesses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/AcquisitionsOfBusinessesDetails</Role>
      <ShortName>Acquisitions Of Businesses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/AcquisitionsOfBusinesses</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Disposition of Assets (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DispositionOfAssetsNarrativeDetails</Role>
      <ShortName>Disposition of Assets (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/DispositionOfAssetsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/EarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/EarningsPerShareTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Inventories (Inventories) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/InventoriesInventoriesDetails</Role>
      <ShortName>Inventories (Inventories) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/InventoriesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Debt (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DebtNarrativeDetails</Role>
      <ShortName>Debt (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/DebtTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Debt (Schedule Of Debt) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/DebtScheduleOfDebtDetails</Role>
      <ShortName>Debt (Schedule Of Debt) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/DebtTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Fair Value Measurements (Schedule Of Assets And Liabilities Carried At Fair Value Measured On A Recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesCarriedAtFairValueMeasuredOnRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements (Schedule Of Assets And Liabilities Carried At Fair Value Measured On A Recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2412401 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/IncomeTaxes</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2413401 - Disclosure - Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CommonStockDetails</Role>
      <ShortName>Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/CommonStock</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2414402 - Disclosure - Retirement Plans (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RetirementPlansNarrativeDetails</Role>
      <ShortName>Retirement Plans (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/RetirementPlansTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2414403 - Disclosure - Retirement Plans (Components Of Net Periodic Pension Benefit Cost) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/RetirementPlansComponentsOfNetPeriodicPensionBenefitCostDetails</Role>
      <ShortName>Retirement Plans (Components Of Net Periodic Pension Benefit Cost) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/RetirementPlansTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2415402 - Disclosure - Commitments and Contingencies Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/CommitmentsAndContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2415403 - Disclosure - Schedule of Restructuring Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/ScheduleOfRestructuringActivitiesDetails</Role>
      <ShortName>Schedule of Restructuring Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Leases (Schedule of Lease Assets and Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesScheduleOfLeaseAssetsAndLiabilitiesDetails</Role>
      <ShortName>Leases (Schedule of Lease Assets and Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/LeasesTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2416404 - Disclosure - Leases (Schedule of Lease Costs) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesScheduleOfLeaseCostsDetails</Role>
      <ShortName>Leases (Schedule of Lease Costs) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/LeasesTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2416405 - Disclosure - Leases (Schedule of Lease Term and Discount Rate) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesScheduleOfLeaseTermAndDiscountRateDetails</Role>
      <ShortName>Leases (Schedule of Lease Term and Discount Rate) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/LeasesTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2416406 - Disclosure - Leases (Schedule of Supplemental Cash Flow Lease Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesScheduleOfSupplementalCashFlowLeaseInformationDetails</Role>
      <ShortName>Leases (Schedule of Supplemental Cash Flow Lease Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/LeasesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2416407 - Disclosure - Leases (Schedule of Maturity of Lease Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/LeasesScheduleOfMaturityOfLeaseLiabilitiesDetails</Role>
      <ShortName>Leases (Schedule of Maturity of Lease Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/LeasesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="eme-2019930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2417402 - Disclosure - Segment Information (Information About Industry Segments And Geographic Areas) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.emcorgroup.com/role/SegmentInformationInformationAboutIndustrySegmentsAndGeographicAreasDetails</Role>
      <ShortName>Segment Information (Information About Industry Segments And Geographic Areas) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.emcorgroup.com/role/SegmentInformationTables</ParentRole>
      <Position>63</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="eme-2019930x10q.htm">eme-2019930x10q.htm</File>
    <File>eme-20190930.xsd</File>
    <File>eme-20190930_cal.xml</File>
    <File>eme-20190930_def.xml</File>
    <File>eme-20190930_lab.xml</File>
    <File>eme-20190930_pre.xml</File>
    <File>eme-ex3112019930xq3.htm</File>
    <File>eme-ex3122019930xq3.htm</File>
    <File>eme-ex3212019930xq3.htm</File>
    <File>eme-ex3222019930xq3.htm</File>
    <File>eme-ex952019930xq3.htm</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>
