Fair Value Disclosures [Abstract] Fair Value Measurements, Recurring and Non-Recurring [Table] Fair Value Measurements, Recurring and Nonrecurring [Table] Debt Instrument [Axis] Debt Instrument [Axis] Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] 4.875% Senior Notes [Member] Four Point Eight Seven Five Percent Senior Notes [Member] 4.875% Senior Notes Long-Term Debt, Type [Axis] Long-term Debt, Type [Axis] Long-Term Debt, Type [Domain] Long-term Debt, Type [Domain] Senior Notes [Member] Senior Notes [Member] Measurement Frequency [Axis] Measurement Frequency [Axis] Fair Value, Measurement Frequency [Domain] Fair Value, Measurement Frequency [Domain] Fair Value Measurements, Non-Recurring [Member] Fair Value, Measurements, Nonrecurring [Member] Measurement Basis [Axis] Measurement Basis [Axis] Fair Value Measurement [Domain] Fair Value Measurement [Domain] Portion at Fair Value Measurement [Member] Portion at Fair Value Measurement [Member] Gross Carrying Amount [Member] Reported Value Measurement [Member] Fair Value [Member] Estimate of Fair Value Measurement [Member] Fair Value, Hierarchy [Axis] Fair Value, Hierarchy [Axis] Fair Value Hierarchy [Domain] Fair Value Hierarchy [Domain] Level 1 [Member] Fair Value, Inputs, Level 1 [Member] Fair Value, Financial Instruments Measured on a Non-Recurring Basis [Line Items] Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Debt instrument, interest rate (percentage) Debt Instrument, Interest Rate, Stated Percentage 4.875% Senior Notes (in dollars) Notes Payable, Fair Value Disclosure Fair value measurements, valuation techniques Fair Value Measurements, Valuation Techniques Related Party Transactions [Abstract] Related Party Transactions Related Party Transactions Disclosure [Text Block] Share-based Compensation [Abstract] Schedule of Stock-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Award Type [Axis] Award Type [Axis] Award Type [Domain] Equity Award [Domain] Restricted Shares [Member] Restricted Stock And Restricted Stock Units [Member] Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met ("Restricted Stock") or share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met ("Restricted Stock Units"). Restricted Stock and Restricted Stock Units are together referred to as "Restricted Shares". Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Stock-based compensation awards, unearned compensation Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Share-based Awards Other than Options Stock-based compensation awards, unearned compensation, weighted average expected recognition period (in years) Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition Stock-based compensation, vested awards, intrinsic value Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value Employee Stock Purchase Plans [Member] Employee Stock [Member] Equity Components [Axis] Equity Components [Axis] Equity Component [Domain] Equity Component [Domain] Common Stock [Member] Common Stock [Member] Stock-Based Compensation and Other Employee Benefit Plans [Line Items] Cash proceeds (in dollars) Proceeds from Issuance of Shares under Incentive and Share-based Compensation Plans, Excluding Stock Options Common shares issued (in shares) Stock Issued During Period, Shares, Employee Stock Purchase Plans Weighted average price per share (in dollars per share) Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price Weighted average per share grant date fair value (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value Segment Reporting [Abstract] Schedule of Financial Information by Reportable Segment Schedule of Segment Reporting Information, by Segment [Table Text Block] Reconciliation of Consolidated Income (Loss) before Income Taxes to EBITDA Reconciliation of Operating Profit (Loss) from Segments to Consolidated [Table Text Block] Schedule of Significant Customers, Revenue Concentration Information Schedule of Revenue by Major Customers by Reporting Segments [Table Text Block] Debt Disclosure [Abstract] Schedule of Long-term Debt Instruments [Table] Schedule of Long-term Debt Instruments [Table] Balance Sheet Location [Axis] Balance Sheet Location [Axis] Balance Sheet Location [Domain] Balance Sheet Location [Domain] Other Accrued Expenses [Member] Accrued Liabilities [Member] Debt Instrument [Line Items] Debt Instrument [Line Items] Debt instruments, accrued interest payable Interest Payable, Current Receivables [Abstract] Accounts Receivable, Net of Allowance Accounts Receivable, Net, Current [Abstract] Contract billings Contract Receivable, Due in Next Twelve Months Retainage Contract Receivable Retainage, Next Twelve Months Costs and earnings in excess of billings Costs in Excess of Billings, Current Accounts receivable, gross Accounts Receivable, Gross, Current Less allowance for doubtful accounts Allowance for Doubtful Accounts Receivable, Current Accounts receivable, net Accounts Receivable, Net, Current Schedule of Related Party Transactions, by Related Party [Table] Schedule of Related Party Transactions, by Related Party [Table] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Axis] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Domain] Split Dollar Life Insurance [Member] Postretirement Life Insurance [Member] Related Party [Axis] Related Party [Axis] Related Party [Domain] Related Party [Domain] Chairman, Board of Directors [Member] Board of Directors Chairman [Member] Chief Executive Officer [Member] Chief Executive Officer [Member] Executive Officers [Member] Executive Officer [Member] Other Long-Term Assets [Member] Other Noncurrent Assets [Member] Related Party Transaction [Line Items] Related Party Transaction [Line Items] Payments for life insurance policies Payments to Acquire Life Insurance Policies Life insurance assets, carrying amount Cash Surrender Value of Life Insurance Commitments and Contingencies Disclosure [Abstract] Loss Contingencies [Table] Loss Contingencies [Table] Credit Facility [Member] Domestic Line of Credit [Member] Guarantor Obligations, Nature [Axis] Guarantor Obligations, Nature [Axis] Guarantor Obligations, Nature [Domain] Guarantor Obligations, Nature [Domain] Performance and Payment Bonds [Member] Performance Guarantee [Member] Financial Guarantees [Member] Financial Standby Letter of Credit [Member] Surety Bond [Member] Surety Bond [Member] Scenario [Axis] Scenario [Axis] Scenario [Domain] Scenario, Unspecified [Domain] Estimate [Member] Scenario, Plan [Member] Joint Ventures [Member] Corporate Joint Venture [Member] Business Acquisition [Axis] Business Acquisition [Axis] Business Acquisition, Acquiree [Domain] Business Acquisition, Acquiree [Domain] Pacer [Member] Pacer [Member] Pacer Construction Holdings Corporation and its affiliated operating companies ("Pacer") (business name). Investment, Name [Axis] Investment, Name [Axis] Investment, Name [Domain] Investment, Name [Domain] Joint Venture A That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture A That Provides Electrical Transmission Infrastructure Services [Member] Joint venture A that provides electrical transmission infrastructure services. Joint Venture B That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture B That Provides Electrical Transmission Infrastructure Services [Member] Joint venture B that provides electrical transmission infrastructure services. Joint Venture C That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture C That Provides Electrical Transmission Infrastructure Services [Member] Joint venture C that provides electrical transmission infrastructure services. Joint Ventures That Provide Infrastructure Construction Services For Electrical Transmission Projects [Member] Joint Ventures That Provide Electrical Transmission Infrastructure Services [Member] Joint venture(s) that provide(s) electrical transmission infrastructure services. Loss Contingency Nature [Axis] Loss Contingency Nature [Axis] Loss Contingency, Nature [Domain] Loss Contingency, Nature [Domain] Self-Insurance [Member] Uninsured Risk [Member] Insurance Policies By Type [Axis] Products and Services [Axis] Insurance Policies By Type [Domain] Products and Services [Domain] Workers Compensation, General and Automobile Policies [Member] Property, Liability and Casualty Insurance Product Line [Member] Employee Group Medical Claims Policies [Member] Group Insurance Policies [Member] Workers Compensation [Member] Accident and Health Insurance Product Line [Member] Other Long-Term Liabilities [Member] Other Noncurrent Liabilities [Member] Collateral [Axis] Collateral [Domain] Cash [Member] Cash [Member] Commitments and Contingencies [Line Items] Loss Contingencies [Line Items] Letters of credit issued Letters of Credit Outstanding, Amount Outstanding bonds, amount Guarantor Obligations, Maximum Exposure, Undiscounted Bonded projects, costs to complete Contract Revenue Cost Proportionately consolidated non-controlled joint venture, ownership percentage Proportionately Consolidated Joint Venture Ownership Percentage The percentage of ownership of common stock or equity participation in the investee accounted for under the proportionate consolidation method. Number of joint ventures Number Of Joint Ventures Number of joint ventures in which the Company has an interest. Self-insurance reserve Self Insurance Reserve Self-insurance reserve, non-current Self Insurance Reserve, Noncurrent Cash collateral deposited with insurance carriers Pledged Assets Separately Reported, Other Assets Pledged as Collateral, at Fair Value Segments and Related Information [Table] Schedule of Segment Reporting Information, by Segment [Table] Geographical [Axis] Geographical [Axis] Geographical [Domain] Geographical [Domain] United States [Member] UNITED STATES Foreign Operations [Member] Non-US [Member] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Domain] Concentration Risk Benchmark [Domain] Accounts Receivable, Net, Less Billings in Excess of Costs and Earnings [Member] Accounts Receivable [Member] Concentration Risk Type [Axis] Concentration Risk Type [Axis] Concentration Risk Type [Domain] Concentration Risk Type [Domain] Geographic Concentration Risk [Member] Geographic Concentration Risk [Member] Customer [Axis] Customer [Axis] Customer [Domain] Customer [Domain] Foreign Customers [Member] Foreign Customers [Member] Foreign customers, which represent customers in countries other than the United States. Segments and Related Information [Line Items] Segment Reporting Information [Line Items] Revenue Revenues Property and equipment, net Property, Plant and Equipment, Net Intangible assets and goodwill, net Intangible Assets, Net (Including Goodwill) Concentration risk, percentage of total Concentration Risk, Percentage Multiemployer Plans [Abstract] Schedule of Covered Employees and Contributions, Multiemployer Plans Schedule of Costs of Retirement Plans [Table Text Block] Income Statement Location [Axis] Income Statement Location [Axis] Income Statement Location [Domain] Income Statement Location [Domain] General and Administrative Expenses [Member] General and Administrative Expense [Member] Prospective Adoption of New Accounting Pronouncements [Axis] Prospective Adoption of New Accounting Pronouncements [Axis] Accounting Guidance [Domain] Accounting Guidance [Domain] ASU 2016-09 [Member] AccountingStandardsUpdate201609Member [Member] Accounting Standards Update 2016-09 Compensation - Stock Compensation (Topic 718): Improvements to Employee Shared-Based Payment Accounting. Non-cash stock-based compensation expense Allocated Share-based Compensation Expense Income Tax Effects: Employee Service Share-based Compensation, Aggregate Disclosures [Abstract] Income tax benefit from non-cash stock-based compensation Employee Service Share-based Compensation, Tax Benefit from Compensation Expense Excess tax benefit from non-cash stock-based compensation Excess Tax Benefit from Share-based Compensation, Operating Activities Net income tax effect Income Tax Expense (Benefit) Capital Lease Obligations [Member] Capital Lease Obligations [Member] Notes Payable and Other Debt Obligations [Member] Notes Payable, Other Payables [Member] Credit Facility [Axis] Credit Facility [Axis] Credit Facility [Domain] Credit Facility [Domain] Revolving Loans [Member] Revolving Credit Facility [Member] Term Loan [Member] Loans Payable [Member] Line of credit facility, maturity date Line of Credit Facility, Expiration Date Debt instrument, maturity date Debt Instrument, Maturity Date Capital lease obligations, expiration date, range, end Lease Expiration Date Long-term debt obligations Long-term Debt, Gross Capital lease obligations Capital Lease Obligations Total long-term debt obligations Long-term Debt and Capital Lease Obligations, Including Current Maturities, Gross Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt and capital lease obligations including current maturities. Less unamortized deferred financing costs Debt Issuance Costs, Net Total debt, net of deferred financing costs Long-term Debt and Capital Lease Obligations, Including Current Maturities Current portion of long-term debt Long-term Debt and Capital Lease Obligations, Current Long-term debt Long-term Debt and Capital Lease Obligations Debt instrument, weighted average interest rate (percentage) Debt, Weighted Average Interest Rate Fair Value of Financial Instruments Fair Value Disclosures [Text Block] Earnings Per Share [Abstract] Earnings Per Share Earnings Per Share [Text Block] Joint Venture [Member] Currency [Axis] Currency [Axis] All Currencies [Domain] All Currencies [Domain] Canadian Dollars [Member] Canada, Dollars Receivable Type [Axis] Receivable Type [Axis] Receivable [Domain] Receivable [Domain] Accounts Receivable [Member] Trade Accounts Receivable [Member] Performance Guarantees [Member] Other Commitments [Axis] Other Commitments [Axis] Other Commitments [Domain] Other Commitments [Domain] Financing Support [Member] Capital Support Agreement [Member] Joint Ventures That Provide Electrical Transmission Infrastructure Services [Member] Revenue, related party Revenue from Related Parties Receivables, related party, unincorporated joint venture Due from Joint Ventures Guarantees issued, related parties Project-related financing provided, related party Payments for Advance to Affiliate Additional amounts committed, related party Other Commitment Goodwill and Intangible Assets Disclosure [Abstract] Schedule of Goodwill [Table] Schedule of Goodwill [Table] Segments [Axis] Segments [Axis] Segments [Domain] Segments [Domain] Communications [Member] Communications [Member] Engineering, construction and maintenance of communications infrastructure primarily related to wireless and wireline/fiber communications and install-to-the-home customers, and, to a lesser extent, distribution infrastructure for electrical utilities, among others. Oil and Gas [Member] Oil And Gas [Member] Engineering, construction and maintenance services on oil and natural gas pipelines and processing facilities for the energy and utilities industries. Electrical Transmission [Member] Electrical Transmission [Member] The engineering, construction and maintenance of electrical transmission lines and substations primarily for the energy and utility industries. Power Generation and Industrial [Member] Power Generation and Industrial [Member] Installation and construction of conventional and renewable power facilities, related electrical transmission infrastructure, ethanol/biofuel facilities and various types of industrial infrastructure, primarily for the energy, utility and other end-markets. Goodwill [Line Items] Goodwill [Line Items] Goodwill, gross Goodwill, Gross Accumulated impairment losses Goodwill, Impaired, Accumulated Impairment Loss Goodwill, net Goodwill CCP [Member] Cross Country Pipeline [Member] Cross Country Pipeline Supply, Inc. (business name) Immediate Family Member of Management or Principal Owner [Member] Immediate Family Member of Management or Principal Owner [Member] Related Party Transaction [Axis] Related Party Transaction [Axis] Related Party Transaction [Domain] Related Party Transaction [Domain] Equipment [Member] Machinery and Equipment [Member] Payments, related party Related Party Transaction, Expenses from Transactions with Related Party Rebates received, related party Related Party Transaction, Rebates Received From Transactions With Related Party Cash rebates received from a related party, as a result of purchase transactions with the related party (excluding transactions that are eliminated in consolidated or combined financial statements). Payables, related party Accounts Payable, Related Parties Stock-based compensation plans, description Share-based Compensation Arrangement by Share-based Payment Award, Description Shares available for grant Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant Income Statement [Abstract] Costs of revenue, excluding depreciation and amortization Cost of Services, Excluding Depreciation, Depletion, and Amortization Depreciation and amortization Depreciation, Depletion and Amortization General and administrative expenses General and Administrative Expense Interest expense, net Interest Revenue (Expense), Net Equity in earnings of unconsolidated affiliates Income (Loss) from Equity Method Investments Other expense (income), net Nonoperating Income (Expense) Income (loss) before income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest (Provision for) benefit from income taxes Net income (loss) Net Income (Loss), Including Portion Attributable to Noncontrolling Interest Net loss attributable to non-controlling interests Net Income (Loss) Attributable to Noncontrolling Interest Net income (loss) attributable to MasTec, Inc. Net Income (Loss) Attributable to Parent Earnings per share (Note 2): Earnings Per Share, Basic and Diluted [Abstract] Basic earnings (loss) per share (in dollars per share) Earnings Per Share, Basic Basic weighted average common shares outstanding Weighted Average Number of Shares Outstanding, Basic Diluted earnings (loss) per share (in dollars per share) Earnings Per Share, Diluted Diluted weighted average common shares outstanding Weighted Average Number of Shares Outstanding, Diluted Document and Entity Information [Abstract] -- None. No documentation exists for this element. -- Document Type Document Type Amendment Flag Amendment Flag Document Period End Date Document Period End Date Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Entity Registrant Name Entity Registrant Name Trading Symbol Trading Symbol Entity Central Index Key Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Current Reporting Status Entity Current Reporting Status Entity Filer Category Entity Filer Category Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Debt Long-term Debt [Text Block] Condensed Unaudited Financial Statements, Supplemental Guarantor Information [Abstract] -- None. No documentation exists for this element. -- Condensed Income Statement [Table] Consolidation Items [Axis] Consolidation Items [Axis] Consolidation Items [Domain] Consolidation Items [Domain] Reportable Legal Entities [Member] Reportable Legal Entities [Member] Eliminations [Member] Consolidation, Eliminations [Member] Legal Entity [Axis] Legal Entity [Axis] Entity [Domain] Entity [Domain] MasTec, Inc. [Member] Parent Company [Member] Guarantor Subsidiaries [Member] Guarantor Subsidiaries [Member] Non-Guarantor Subsidiaries [Member] Non-Guarantor Subsidiaries [Member] Condensed Unaudited Consolidating Statements of Operations and Comprehensive Income (Loss) [Line Items] Condensed Income Statements, Captions [Line Items] Interest expense (income), net Equity in (earnings) losses of unconsolidated affiliates Net (loss) income before equity in income from subsidiaries Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest Equity in income (losses) from subsidiaries, net of tax Income (Loss) from Subsidiaries, Net of Tax Comprehensive income (loss) Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest Schedule of Earnings Per Share Information Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Equity [Abstract] Equity Stockholders' Equity Note Disclosure [Text Block] Other Retirement Plans Pension and Other Postretirement Benefits Disclosure [Text Block] Schedule of Earnings Per Share [Table] Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table] Antidilutive Securities [Axis] Antidilutive Securities [Axis] Antidilutive Securities, Name [Domain] Antidilutive Securities, Name [Domain] Common Stock Equivalents Excluded Due To Net Loss [Member] Common Stock Equivalents Excluded Due To Net Loss [Member] The number of weighted average common stock equivalents excluded from the calculation of diluted net loss per share as their effect would have been anti-dilutive. Earnings Per Share [Line Items] Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items] Net income (loss) attributable to MasTec: Net Income (Loss) Attributable to Parent, Diluted [Abstract] Net income (loss) - basic (in dollars) Net income (loss) - diluted (in dollars) Net Income (Loss) Attributable to Parent, Diluted Weighted average shares outstanding: Weighted Average Number of Shares Outstanding, Diluted [Abstract] Weighted average shares outstanding - basic Dilutive common stock equivalents (in shares) Incremental Common Shares Attributable to Dilutive Effect of Share-based Payment Arrangements Weighted average shares outstanding - diluted Weighted average anti-dilutive common stock equivalents (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Stock-Based Compensation and Other Employee Benefit Plans Disclosure of Compensation Related Costs, Share-based Payments [Text Block] Condensed Balance Sheet Statement [Table] Condensed Balance Sheet Statement [Table] Condensed Unaudited Consolidating Balance Sheets [Line Items] Condensed Balance Sheet Statements, Captions [Line Items] Assets Assets [Abstract] Total current assets Assets, Current Goodwill and other intangible assets, net Investments in and advances to consolidated affiliates, net Due from Affiliate, Noncurrent Other long-term assets Other Assets, Noncurrent Total assets Assets Liabilities and equity Liabilities and Equity [Abstract] Total current liabilities Liabilities, Current Other long-term liabilities Liabilities, Other than Long-term Debt, Noncurrent Total liabilities Liabilities Total equity Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest Total liabilities and equity Liabilities and Equity Schedule of Accounts, Notes, Loans and Financing Receivable [Table] Schedule of Accounts, Notes, Loans and Financing Receivable [Table] Interest Expense [Member] Interest Expense [Member] Financing Receivable [Member] Financing Receivable [Member] Schedule of Accounts Receivable, Net of Allowance [Line Items] Accounts, Notes, Loans and Financing Receivable [Line Items] Provisions for doubtful accounts Provision for Doubtful Accounts Non-recourse financing arrangement, discount charge Gain (Loss) on Sale of Accounts Receivable Condensed Unaudited Consolidating Statements of Operations and Comprehensive Income (Loss) Condensed Income Statement [Table Text Block] Condensed Unaudited Consolidating Balance Sheets Condensed Balance Sheet [Table Text Block] Condensed Unaudited Consolidating Statements of Cash Flows Condensed Cash Flow Statement [Table Text Block] Primary Segments [Member] Primary Segments [Member] Primary segments are those segments other than the Other segment or Corporate. Other [Member] Other Segments [Member] Change in Accounting Estimate by Type [Axis] Change in Accounting Estimate by Type [Axis] Change in Accounting Estimate, Type [Domain] Change in Accounting Estimate, Type [Domain] Contracts Accounted for under Percentage-of-Completion [Member] Contracts Accounted for under Percentage of Completion [Member] Segment reporting information, factors used to identify entity's reportable segments Segment Reporting, Factors Used to Identify Entity's Reportable Segments Number of operating segments Number of Operating Segments Number of reportable segments Number of Reportable Segments Segment reporting information, description of products and services Segment Reporting Information, Description of Products and Services Segment reporting, description of all other segments Segment Reporting, Description of All Other Segments Project losses (in dollars) Loss on Contracts Statement of Financial Position [Abstract] Current assets: Assets, Current [Abstract] Cash and cash equivalents Cash and Cash Equivalents, at Carrying Value Accounts receivable, net of allowance Inventories, net Inventory, Net Prepaid expenses Prepaid Expense, Current Other current assets Other Assets, Current Total current assets Goodwill, net Other intangible assets, net Intangible Assets, Net (Excluding Goodwill) Other long-term assets Current liabilities: Liabilities, Current [Abstract] Accounts payable Accounts Payable, Current Accrued salaries and wages Employee-related Liabilities, Current Other accrued expenses Accrued Liabilities, Current Billings in excess of costs and earnings Billings in Excess of Cost, Current Other current liabilities Other Liabilities, Current Total current liabilities Long-term deferred tax liabilities, net Deferred Tax Liabilities, Net, Noncurrent Other long-term liabilities Other Liabilities, Noncurrent Commitments and contingencies (Note 14) Commitments and Contingencies Equity Stockholders' Equity Attributable to Parent [Abstract] Preferred stock, $1.00 par value: authorized shares - 5,000,000; issued and outstanding shares – none Preferred Stock, Value, Issued Common stock, $0.10 par value: authorized shares - 145,000,000; issued shares - 90,787,596 and 90,634,771 (including 1,792,659 and 1,927,286 of unvested restricted shares) as of March 31, 2017 and December 31, 2016, respectively Common Stock, Value, Issued Capital surplus Additional Paid in Capital, Common Stock Retained earnings Retained Earnings (Accumulated Deficit) Accumulated other comprehensive loss Accumulated Other Comprehensive Income (Loss), Net of Tax Treasury stock, at cost: 8,094,004 shares as of both March 31, 2017 and December 31, 2016 Treasury Stock, Common, Value Total MasTec, Inc. shareholders’ equity Stockholders' Equity Attributable to Parent Non-controlling interests Stockholders' Equity Attributable to Noncontrolling Interest Total equity Accounting Policies [Abstract] Business, Basis of Presentation and Significant Accounting Policies Organization, Consolidation, Basis of Presentation, Business Description and Accounting Policies [Text Block] Contingent Consideration by Type [Axis] Contingent Consideration by Type [Axis] Contingent Consideration Type [Domain] Contingent Consideration Type [Domain] Earn-Out Arrangements [Member] Earn-out Arrangements [Member] Additional future payments to sellers of an acquired business, contingent upon the acquired business's future earnings performance. Level 3 [Member] Fair Value, Inputs, Level 3 [Member] Fair Value Measurements, Recurring [Member] Fair Value, Measurements, Recurring [Member] Other Current Liabilities [Member] Other Current Liabilities [Member] Foreign Currency Translation Adjustments [Member] Accumulated Foreign Currency Adjustment Attributable to Parent [Member] Other Income (Expense) [Member] Nonoperating Income (Expense) [Member] Fair Value, Financial Instruments Measured on a Recurring Basis [Line Items] ASC 805 contingent consideration, fair value Obligations, Fair Value Disclosure Range of potential undiscounted earn-out liabilities, low Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, Low Range of potential undiscounted earn-out liabilities, high Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High ASC 805 contingent consideration liability, increase (decrease) Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Period Increase (Decrease) Foreign currency translation gains (losses), included in other comprehensive income (loss), ASC 805 contingent consideration Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Other Comprehensive Income (Loss) (Increase) reduction in ASC 805 contingent consideration liability, gain (loss) included in earnings Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings Debt instrument, guarantees Debt Instrument, Collateral Goodwill and Other Intangible Assets Goodwill and Intangible Assets Disclosure [Text Block] Stock-based compensation awards, stock options, outstanding (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number Stock options exercised, intrinsic value Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period, Intrinsic Value Stock options exercised, proceeds Employee Service Share-based Compensation, Cash Received from Exercise of Stock Options Schedule of Goodwill by Segment Schedule of Goodwill [Table Text Block] Rollforward of Other Intangible Assets Intangible Assets Disclosure [Text Block] Goodwill, Gross [Member] Goodwill [Member] Goodwill, Accumulated Impairment Losses [Member] Reserve for Impairment of Intangible Assets [Member] Goodwill, currency translation gains (losses) Goodwill, Foreign Currency Translation Gain (Loss) Amortization expense, intangible assets Amortization of Intangible Assets Condensed Cash Flow Statement [Table] Condensed Cash Flow Statement [Table] Condensed Unaudited Consolidating Statements of Cash Flows [Line Items] Condensed Cash Flow Statements, Captions [Line Items] Net cash provided by (used in) operating activities Net Cash Provided by (Used in) Operating Activities Cash flows from investing activities: Net Cash Provided by (Used in) Investing Activities [Abstract] Capital expenditures Payments to Acquire Productive Assets Proceeds from sale of property and equipment Proceeds from Sale of Property, Plant, and Equipment Payments for other investments Payments to Acquire Other Investments Proceeds from other investments Proceeds from Sale and Maturity of Other Investments Net cash used in investing activities Net Cash Provided by (Used in) Investing Activities Cash flows provided by (used in) financing activities: Net Cash Provided by (Used in) Financing Activities [Abstract] Proceeds from credit facilities Proceeds from Long-term Lines of Credit Repayments of credit facilities Repayments of Long-term Lines of Credit Repayments of other borrowings and capital lease obligations Repayments of Other Debt Payments of financing costs Payments of Financing Costs Distributions to non-controlling interests Payments of Ordinary Dividends, Noncontrolling Interest (Payments for) proceeds from stock-based awards, net Proceeds from Issuance of Shares under Incentive and Share-based Compensation Plans, Including Stock Options Other financing activities, net Proceeds from (Payments for) Other Financing Activities Net financing activities and advances from (to) consolidated affiliates Net Financing Activities And Advances From (To) Consolidated Affiliates The cash inflow (outflow) from financing activities and (advances to) collection of money previously advanced to consolidated entities. Net cash used in financing activities Net Cash Provided by (Used in) Financing Activities Effect of currency translation on cash Effect of Exchange Rate on Cash and Cash Equivalents Net decrease in cash and cash equivalents Cash and Cash Equivalents, Period Increase (Decrease) Cash and cash equivalents - beginning of period Cash and cash equivalents - end of period Supplemental Guarantor Financial Information Condensed Financial Statements [Text Block] Schedule of Covered Employees and Contributions, Multiemployer Plans [Table] Schedule of Multiemployer Plans [Table] Workforce Subject to Collective Bargaining Arrangements [Member] Workforce Subject to Collective Bargaining Arrangements [Member] Unionized Employees [Member] Unionized Employees Concentration Risk [Member] Range [Axis] Range [Axis] Range [Domain] Range [Domain] Low [Member] Minimum [Member] High [Member] Maximum [Member] Multiemployer Plan Type [Axis] Multiemployer Plan Type [Axis] Multiemployer Plans Type [Domain] Multiemployer Plans Type [Domain] Multiemployer Plans, Pension [Member] Multiemployer Plans, Pension [Member] Multiemployer Plans, Other Multiemployer [Member] Multiemployer Plans, Postretirement Benefit [Member] Covered Employees and Contributions, Multiemployer Plans [Line Items] Multiemployer Plans [Line Items] Multiemployer plans, covered employees (in number of employees) Defined Contribution Plan, Number of Employees Covered Multiemployer plans, contributions (in dollars) Multiemployer Plan, Period Contributions Reportable Segments [Member] Operating Segments [Member] Corporate [Member] Corporate, Non-Segment [Member] EBITDA: Segment Reporting Information, Income (Loss) before Income Taxes [Abstract] EBITDA EBITDA Earnings from continuing operations before interest, taxes, depreciation and amortization, a non-U.S. GAAP financial measure of profitability. Leases [Abstract] Schedule of Operating Leased Assets [Table] Schedule of Operating Leased Assets [Table] Lease Arrangement, Type [Axis] Lease Arrangement, Type [Axis] Lease Arrangement, Type [Domain] Lease Arrangement, Type [Domain] Lease Term in Excess of One Year [Member] Lease Term In Excess Of One Year [Member] Lease term in excess of one year. Lease Term of One Year or Less [Member] Lease Term Less Than One Year [Member] Lease term of one year or less. Minimum [Member] Maximum [Member] Operating Leased Assets [Line Items] Operating Leased Assets [Line Items] Operating leases, term of contract (in years) Lessee Leasing Arrangements, Operating Leases, Term of Contract Operating leases, rent and related expense (in dollars) Operating Leases, Rent Expense, Net Class of Treasury Stock [Table] Class of Treasury Stock [Table] Share Repurchase Program [Axis] Share Repurchase Program [Axis] Share Repurchase Program [Domain] Share Repurchase Program [Domain] 2016 Share Repurchase Program [Member] 2016 Share Repurchase Program [Member] Share repurchase plan authorized by the board of directors in February 2016. Treasury Stock, Common [Member] Treasury Stock, Common [Member] Equity, Treasury Stock [Line Items] Equity, Class of Treasury Stock [Line Items] Share repurchase program, amount authorized, value (in dollars) Stock Repurchase Program, Authorized Amount Common stock repurchases (in shares) Treasury Stock, Shares, Acquired Statement [Table] Statement [Table] Restricted Shares [Member] Restricted Stock [Member] Statement [Line Items] Statement [Line Items] Preferred stock, par value (in dollars per share) Preferred Stock, Par or Stated Value Per Share Preferred stock, shares authorized Preferred Stock, Shares Authorized Preferred stock, shares issued Preferred Stock, Shares Issued Preferred stock, shares outstanding Preferred Stock, Shares Outstanding Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Common stock, shares authorized Common Stock, Shares Authorized Common stock, shares issued Common Stock, Shares, Issued Unvested restricted shares (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number Treasury stock, shares Treasury Stock, Common, Shares Schedule of Activity, Restricted Shares Schedule of Share-based Compensation, Restricted Stock and Restricted Stock Units Activity [Table Text Block] Schedule of Activity, Employee Stock Purchase Plans Schedule of Share-based Compensation, Employee Stock Purchase Plan, Activity [Table Text Block] Schedule of Non-Cash Stock-Based Compensation Expense and Related Tax Benefits Schedule of Compensation Cost for Share-based Payment Arrangements, Allocation of Share-based Compensation Costs by Plan [Table Text Block] Property, Plant and Equipment [Abstract] Property and Equipment, Net Property, Plant and Equipment Disclosure [Text Block] Schedule of Accounts Receivable, Net of Allowance Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block] Letters of Credit [Member] Letter of Credit [Member] Swing Line Loans [Member] Bridge Loan [Member] Accordion Feature [Member] Additional Funding Agreement Terms [Member] Weighted Average [Member] Weighted Average [Member] Variable Rate [Axis] Variable Rate [Axis] Variable Rate [Domain] Variable Rate [Domain] Eurocurrency Rate [Member] Eurocurrency Rate [Member] Interest rate at which a bank borrows funds from other banks in a foreign market. Base Rate [Member] Base Rate [Member] Federal Funds Rate [Member] Federal Funds Purchased [Member] Bank of America Prime Rate [Member] Prime Rate [Member] Plan [Member] Base Rate Option (i) [Member] Base Rate Option 1 [Member] Base Rate equals the Federal Funds Rate plus 0.5%. Base Rate Option (ii) [Member] Base Rate Option 2 [Member] Base Rate equals the Bank of America Prime Rate. Base Rate Option (iii) [Member] Base Rate Option 3 [Member] Base Rate equals the Eurocurrency Rate plus 1.00%. Financial Standby [Member] Performance Standby [Member] Standby Letters of Credit [Member] Permitted Acquisition [Member] Permitted Acquisition [Member] Permitted Acquisition [Member] Line of credit facility, maximum borrowing capacity Line of Credit Facility, Maximum Borrowing Capacity Line of credit facility, term loan, frequency of payments Line of Credit Facility, Frequency of Payments Line of credit facility, term loan, amount of quarterly principal installment payments Line of Credit Facility, Periodic Payment, Principal Line of credit facility, remaining borrowing capacity Line of Credit Facility, Remaining Borrowing Capacity Line of credit facility, revolving loan sublimit, Canadian dollars or Mexican pesos Line Of Credit, Revolving Loan Sublimit, Canadian Dollars Or Mexican Pesos Sublimit or portion of maximum borrowing capacity available on an existing line of credit in Canadian dollars or Mexican pesos. Line of credit facility, capacity available for letters of credit Line of Credit Facility, Capacity Available for Specific Purpose Other than for Trade Purchases Line of credit facility, capacity available for letters of credit sublimit, Canadian dollars or Mexican pesos Line Of Credit, Letter Of Credit Sublimit, Canadian Dollars Or Mexican Pesos The portion of the maximum amount of borrowing capacity under a line of credit that is available as of the balance sheet date for letters of credit that is available in Canadian dollars or Mexican pesos. Line of credit facility, swing line loans sublimit Line of Credit, Revolving Loan Sublimit Sublimit or portion of maximum borrowing capacity available on an existing line of credit. Line of credit facility, description of variable rate Debt Instrument, Description of Variable Rate Basis Line of credit facility, variable interest rate, margin over base rate (percentage) Debt Instrument, Basis Spread on Variable Rate Line of credit facility, interest rate description, letters of credit Line of Credit Facility, Interest Rate Description Line of credit facility, interest rate (percentage) Line of Credit Facility, Interest Rate at Period End Line of credit facility, commitment fee description Line of Credit Facility, Commitment Fee Description Line of credit facility, unused facility fee (percentage) Line of Credit Facility, Unused Capacity, Commitment Fee Percentage Line of credit facility, amount of borrowings denominated in foreign currencies Line Of Credit Facility, Amount Denominated In Foreign Currencies The carrying value as of the balance sheet date of the portion of the revolving credit facility obligation which is denominated in foreign currencies. Line of credit facility, letters of credit issued Line of credit facility, remaining borrowing capacity available in either Canadian dollars or Mexican pesos Line Of Credit Facility, Remaining Borrowing Capacity In Foreign Currency Amount of borrowing capacity currently available in either Canadian dollars or Mexican pesos that is included in the total amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). Line of credit facility, collateral Line of Credit Facility, Collateral Line of credit facility, covenant terms Line of Credit Facility, Covenant Terms Line of credit facility, required consolidated leverage ratio (in multiple) Ratio of Indebtedness to Net Capital Line of credit facility, required consolidated interest coverage ratio (in multiple) Interest Coverage Ratio The ratio which is calculated by dividing earnings before interest and taxes of a period by interest expense of the same period. Line of credit facility, adjusted consolidated leverage ratio, permitted acquisitions amount, minimum threshold Permitted Acquisitions Amount Adjusted Ratio of Indebtedness to Net Capital Minimum threshold amount of consideration for permitted acquisition or series of permitted acquisitions during a fiscal quarter in order to permit a higher consolidated leverage ratio range for such a fiscal quarter and the subsequent two fiscal quarters. Line of credit facility, adjusted consolidated leverage ratio, permitted acquisitions, maximum number of times right may be exercised Number Of Times Right May Be Exercised Number of times during the term of the Credit Facility that the right to permit the consolidated leverage ratio to exceed a specified threshold may be or has been exercised. Income Tax Disclosure [Abstract] Income Taxes Income Tax Disclosure [Text Block] Management [Member] Management [Member] Subcontracting Arrangement, Construction Services [Member] Subcontracting Arrangements [Member] The performance of services under a subcontracting arrangement. Employee Leasing Arrangements [Member] Employment Contracts [Member] Service Agreements [Member] Service Agreements [Member] Lease Agreements [Member] Lease Agreements [Member] Supplier [Axis] Supplier [Axis] Supplier [Domain] Share-based Goods and Nonemployee Services Transaction, Supplier [Domain] Related Contractor [Member] Related Contractor Or Supplier [Member] Contractor or supplier that has a related party relationship with the entity, either by ownership or management affiliation. Major Customers [Axis] Name of Major Customer [Domain] Related Customer [Member] Related Customer [Member] Customer that has a related party relationship with the entity, either by ownership or management affiliation. Aircraft [Member] Air Transportation Equipment [Member] Subsidiaries [Member] Subsidiaries [Member] Number of additional management employees, subcontracting arrangement Entity Number of Employees Charges, related party Related Party Transaction, Other Revenues from Transactions with Related Party Receivables, related party Due from Related Parties Accounts receivable, related party Accounts Receivable, Related Parties Number of subsidiaries, non-controlling interests, subcontracting arrangement Number Of Subsidiaries Number of consolidated subsidiaries reported by the Company. Distributions to non-controlling interests Segments and Related Information Segment Reporting Disclosure [Text Block] Quarterly provision for income taxes, description Quarterly Financial Information, Income Taxes, Significant Variation, Description Long-term deferred tax liabilities, net Current deferred tax assets, net Deferred Tax Assets, Net, Current Accrued taxes payable, current Taxes Payable, Current Restricted Stock Units [Member] Restricted Stock Units (RSUs) [Member] Restricted Shares Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] Non-vested restricted shares, beginning balance (in shares) Granted (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period Vested (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period Canceled/forfeited (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period Non-vested restricted shares, ending balance (in shares) Per Share Weighted Average Grant Date Fair Value Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract] Non-vested restricted shares, per share weighted average grant date fair value, beginning balance (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value Granted (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value Vested (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value Canceled/forfeited (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value Non-vested restricted shares, per share weighted average grant date fair value, ending balance (in dollars per share) Other Guarantees [Table] Long-Duration Contracts, Assumptions, by Product and Guarantee [Table] Warranty [Member] Warranty Obligations [Member] Other Guarantees [Line Items] Long-Duration Contracts, Assumptions by Product and Guarantee [Line Items] Other guarantees, description Guarantor Obligations, Origin and Purpose General warranty, description Standard Product Warranty Description General warranty, period (in years) Fair Value Assumptions, Expected Term Cost Investment [Member] Cost-method Investments [Member] Waha JVs [Member] Waha JVs [Member] Trans-Pecos Pipeline, LLC ("TPP") (business name) and Comanche Trail Pipeline, LLC ("CTP") (business name) and together, referred to as the Waha JVs Joint Venture Liquidated in 2016 [Member] Joint Venture Which Was Liquidated in 2016 [Member] Joint venture which was liquidated in 2016. Equity Investees [Member] Equity Method Investee [Member] Derivative Instrument [Axis] Derivative Instrument [Axis] Derivative Contract [Domain] Derivative Contract [Domain] Interest Rate Swaps [Member] Interest Rate Swap [Member] Equity Investees, Remaining Amounts Committed [Member] Cost method investment, original cost Cost Method Investments, Original Cost Number of pipelines, construction services Number Of Pipelines To Be Constructed Number of pipelines under construction. Number of pipelines in operation Number Of Pipelines In Operation Number of pipelines in operation at the balance sheet date. Equity investee, equity and other contributions Payments to Acquire Equity Method Investments Equity in earnings (losses) of unconsolidated affiliates Unrealized gains (losses) on equity investee activity Other Comprehensive Income (Loss), Unrealized Gain (Loss) on Derivatives Arising During Period, before Tax Unrealized gains (losses) on equity investee activity, net of tax Other Comprehensive Income (Loss), Unrealized Gain (Loss) on Derivatives Arising During Period, Net of Tax Revenue, related parties Receivables, including retainage, net of BIEC, related parties Accounts Receivable, Net Of Billings In Excess Of Costs, Related Parties Amount of receivables, net of billings in excess of costs, arising from transactions with related parties. Receivables are the amounts due from customers or clients, within one year of the balance sheet date (or the normal operating cycle, whichever is longer), for goods or services (including trade receivables) that have been delivered or sold in the normal course of business, reduced to the estimated net realizable fair value by an allowance established by the entity of the amount it deems uncertain of collection. Billings in excess of costs is the liability attributable to (i) billings in excess of costs under the percentage of completion contract accounting method representing the difference between contractually invoiced amounts (billings) and revenue recognized based, for example, on costs incurred to estimated total costs at period end or (ii) contractually invoiced amounts (billings) in excess of costs incurred and accumulated under the completed contract accounting method that are expected to be realized within one year or one operating cycle, whichever is longer, from the reporting date. Net investment, equity investees, asset Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures Other equity investee, proceeds related to ongoing liquidation Proceeds from Equity Method Investment, Dividends or Distributions, Return of Capital Contractual joint venture, additional amounts committed Construction projects, percentage complete Construction Projects, Percentage Complete For a construction project, represents the percentage of completion of the project as of a point in time. Segment Reporting, Disclosure of Entity's Reportable Segments [Abstract] Revenue Recognition [Abstract] Revenue Recognition [Abstract] Revenue from External Customers by Products and Services [Table] Revenue from External Customers by Products and Services [Table] Type of Arrangement and Non-arrangement Transactions [Axis] Type of Arrangement and Non-arrangement Transactions [Axis] Arrangements and Non-arrangement Transactions [Domain] Arrangements and Non-arrangement Transactions [Domain] Master Service and Other Service Agreements [Member] Concentration Risk from Type of Arrangement [Member] Product Concentration Risk [Member] Revenue [Member] Sales Revenue, Services, Net [Member] Revenue Recognition [Line Items] Revenue from External Customer [Line Items] Change in accounting estimate, percentage-of-completion projects, financial effect on project profit, percentage Change In Accounting Estimate, Percentage Of Completion Projects, Financial Effect, Percentage Disclosure of the percentage effect on project profit (defined as project revenue less project costs of revenue, including depreciation) during the reporting period of changes in contract estimates for projects that were in process as of the end of the prior year. Fixed price contract, percentage-of-completion method, term within which generally completed (in years) Fixed Price Contracts, Term Expected length of time within which a fixed price contract accounted for under the percentage-of-completion method is completed, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Unapproved change orders, description Unapproved Change Orders, Description Unapproved change orders, expected to be billed and collected within one year, amount (in dollars) Unbilled Change Orders, Amount Expected to be Collected within One Year Change order approval process, term within which expected to be completed (in years) Unapproved Change Orders, Expected Term For Approval Expected length of time within which an unapproved change order is approved by the customer, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Condensed Financial Statements [Table] Condensed Financial Statements [Table] Condensed Unaudited Consolidating Financial Information [Line Items] Condensed Financial Statements, Captions [Line Items] Risks and Uncertainties [Abstract] Concentration Risk [Table] Concentration Risk [Table] Credit Concentration Risk [Member] Credit Concentration Risk [Member] Customer Concentration Risk [Member] Customer Concentration Risk [Member] Customer with Highest Net Accounts Receivable Position [Member] Customer With Highest Net Accounts Receivable Position1 [Member] Customer who accounted for the highest net accounts receivable position, subsequent to AT&T's acquisition of DIRECTV, which represents accounts receivable, net, less billings in excess of costs and earnings. Customer with Second Highest Net Accounts Receivable Position [Member] Customer With Second Highest Net Accounts Receivable Position [Member] Customer who accounted for the second highest net accounts receivable position, which represents accounts receivable, net, less billings in excess of costs and earnings. Ten Largest Customers [Member] Ten Largest Customers1 [Member] Ten largest customers, subsequent to AT&T acquisition of DIRECTV. Concentration Risk [Line Items] Concentration Risk [Line Items] Number of customers Number Of Customers1 Number of customers Schedule Of Other Intangible Assets [Table] ScheduleOfIntangibleAssets [Table] Schedule of intangible assets, excluding goodwill. Non-Amortizing Intangible Assets [Axis] Indefinite-lived Intangible Assets [Axis] Non-Amortizing Intangible Assets, Major Class Name [Domain] Indefinite-lived Intangible Assets, Major Class Name [Domain] Trade Names [Member] Trade Names [Member] Pre-Qualifications [Member] Contractual Rights [Member] Amortizing Intangible Assets by Major Class [Axis] Finite-Lived Intangible Assets by Major Class [Axis] Amortizing Intangible Assets, Major Class Name [Domain] Finite-Lived Intangible Assets, Major Class Name [Domain] Customer Relationships and Backlog [Member] Customer-Related Intangible Assets [Member] Other Amortizing Intangible Assets [Member] Other Intangible Assets [Member] Other Intangible Assets [Line Items] Intangible assets [Line Items] Line items for intangible assets, excluding goodwill. Other intangible assets, non-amortizing, carrying amount Indefinite-Lived Intangible Assets (Excluding Goodwill) Other intangible assets, amortizing, gross Finite-Lived Intangible Assets, Gross Other intangible assets, gross Intangible Assets, Gross (Excluding Goodwill) Accumulated amortization Finite-Lived Intangible Assets, Accumulated Amortization Other Intangible Assets [Rollforward] Intangible Assets (Excluding Goodwill) [Roll Forward] Rollforward of intangible assets, excluding goodwill. Other intangible assets, non-amortizing, beginning balance Other intangible assets, net, amortizing, beginning balance Finite-Lived Intangible Assets, Net Other intangible assets, net, beginning balance Amortization expense Currency translation adjustments, non-amortizing intangible assets Indefinite-lived Intangible Assets, Foreign Currency Translation Gain (Loss) Currency translation adjustments, amortizing intangible assets Finite Lived Intangible Assets, Foreign Currency Translation Gain (Loss) Currency translation adjustments, other intangible assets Intangible Assets, Gross (Excluding Goodwill), Translation Adjustments Amount of increase (decrease) to intangible assets, excluding goodwill, for foreign currency translation adjustments. Other intangible assets, non-amortizing, ending balance Other intangible assets, net, amortizing, ending balance Other intangible assets, net, ending balance Eliminations [Member] Intersegment Eliminations [Member] Utilities [Member] Utilities [Member] Customers of the business entity whose end-market products or services are in the utilities industry. Revenue: Segment Reporting Information, Revenue for Reportable Segment [Abstract] Revenue (in dollars) Utilities customers, percentage of Communications segment revenue Schedule of Revenue by Major Customers, by Reportable Segment [Table] Schedule of Revenue by Major Customers, by Reporting Segments [Table] AT&T (including DIRECTV) [Member] AT&T1 [Member] AT&T, including DIRECTV (business name). Energy Transfer Affiliates [Member] Energy Transfer Affiliates [Member] Energy Transfer affiliates (business name). Revenue, Significant Customers [Line Items] Significant customers, percentage of total consolidated revenue Commitments and Contingencies Commitments Contingencies and Guarantees [Text Block] Other Credit Facilities [Member] Foreign Line of Credit [Member] Line of credit facility, maximum borrowing capacity (in dollars) Long-term debt obligations (in dollars) Debt instrument, rationale for classification as long-term debt Line of Credit Facility, Rationale for Classification as Long-term Debt Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Reclassifications Reclassification, Policy [Policy Text Block] Principles of Consolidation Consolidation, Policy [Policy Text Block] Equity Method Investments Equity Method Investments, Policy [Policy Text Block] Unincorporated Joint Ventures, Proportionate Consolidation Interest in Unincorporated Joint Ventures or Partnerships, Policy [Policy Text Block] Cost Method Investments Cost Method Investments, Policy [Policy Text Block] Variable Interest Entities Consolidation, Variable Interest Entity, Policy [Policy Text Block] Translation of Foreign Currencies Foreign Currency Transactions and Translations Policy [Policy Text Block] Management Estimates Use of Estimates, Policy [Policy Text Block] Revenue Recognition Revenue Recognition, Policy [Policy Text Block] Revenue Recognition, Percentage-of-Completion Method Revenue Recognition, Percentage-of-Completion Method [Policy Text Block] Recently Issued Accounting Pronouncements New Accounting Pronouncements, Policy [Policy Text Block] Capital Leases [Table] Schedule of Capital Leased Assets [Table] Property and Equipment [Member] Property, Plant and Equipment [Member] Capital Leases [Line Items] Capital Leased Assets [Line Items] Assets held under capital lease, gross Capital Leased Assets, Gross Assets held under capital lease, net Capital Leases, Balance Sheet, Assets by Major Class, Net Multiemployer plans, general nature Multiemployer Plans, General Nature Schedule of Carrying Values of Debt Schedule of Long-term Debt Instruments [Table Text Block] Depreciation and Amortization: Depreciation, Depletion and Amortization [Abstract] Statement of Cash Flows [Abstract] Cash flows from operating activities: Net Cash Provided by (Used in) Operating Activities [Abstract] Net income (loss) Adjustments to reconcile net income (loss) to net cash provided by operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Non-cash interest expense, net Amortization of Debt Issuance Costs and Discounts Provision for (benefit from) deferred income taxes Deferred Income Tax Expense (Benefit) Gains on sales of assets, net, including estimated losses on fixed assets held-for-sale Gain (Loss) on Sale of Assets and Asset Impairment Charges Other non-cash items, net Other Noncash Income (Expense) Changes in assets and liabilities, net of acquisitions: Increase (Decrease) in Operating Capital [Abstract] Accounts receivable Increase (Decrease) in Accounts Receivable Inventories Increase (Decrease) in Inventories Other assets, current and long-term portion Increase (Decrease) in Other Operating Assets Accounts payable and accrued expenses Increase (Decrease) in Accounts Payable and Accrued Liabilities Billings in excess of costs and earnings Increase (Decrease) in Billing in Excess of Cost of Earnings Book overdrafts Increase (Decrease) in Book Overdrafts Other liabilities, current and long-term portion Increase (Decrease) in Other Operating Liabilities Net cash provided by operating activities Cash flows from investing activities: Cash flows from financing activities: Repayments of other borrowings Repayments of Other Long-term Debt Payments of capital lease obligations Repayments of Long-term Capital Lease Obligations Supplemental cash flow information: Supplemental Cash Flow Information [Abstract] Interest paid Interest Paid Income taxes paid, net of refunds Income Taxes Paid, Net Supplemental disclosure of non-cash information: Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract] Equipment acquired under capital lease Capital Lease Obligations Incurred Accrued capital expenditures Capital Expenditures Incurred but Not yet Paid Schedule of Property and Equipment, Net [Table] Property, Plant and Equipment [Table] Asset Class [Axis] Asset Class [Axis] Asset Class [Domain] Asset Class [Domain] Property and Equipment [Line Items] Property, Plant and Equipment [Line Items] Capitalized internal-use software, gross Capitalized Computer Software, Gross Capitalized internal-use software, net Capitalized Computer Software, Net Computation of earnings per share, methodology Earnings Per Share Reconciliation Disclosure Remaining stock options (in shares) Dilutive common stock equivalents (in shares) Lease Obligations Leases of Lessee Disclosure [Text Block] Accounts Receivable, Net of Allowance Loans, Notes, Trade and Other Receivables Disclosure [Text Block] Statement of Comprehensive Income [Abstract] Net income (loss) Other comprehensive income (loss): Other Comprehensive Income (Loss), Net of Tax [Abstract] Foreign currency translation gains, net of tax Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax Comprehensive income (loss) Comprehensive loss attributable to non-controlling interests Comprehensive Income (Loss), Net of Tax, Attributable to Noncontrolling Interest Comprehensive income (loss) attributable to MasTec, Inc. Comprehensive Income (Loss), Net of Tax, Attributable to Parent EBITDA Reconciliation: Reconciliation of Operating Profit (Loss) from Segments to Consolidated [Abstract] Consolidated EBITDA Property and Equipment, Type [Axis] Property, Plant and Equipment, Type [Axis] Property and Equipment, Type [Domain] Property, Plant and Equipment, Type [Domain] Land [Member] Land [Member] Building and Leasehold Improvements [Member] Building and Building Improvements [Member] Machinery and Equipment [Member] Office Furniture and Equipment [Member] Furniture and Fixtures [Member] Construction in Progress [Member] Construction in Progress [Member] Property and equipment Property, Plant and Equipment, Gross Less accumulated depreciation and amortization Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment Property and equipment, net Schedule of Property and Equipment, Net Property, Plant and Equipment [Table Text Block]