<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://quantaservices.com/role/Acquisitions" xlink:href="pwr-20180930.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:href="pwr-20180930.xsd#AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsTables" xlink:href="pwr-20180930.xsd#AcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:href="pwr-20180930.xsd#AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganization" xlink:href="pwr-20180930.xsd#BusinessAndOrganization" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/BusinessAndOrganizationDetail" xlink:href="pwr-20180930.xsd#BusinessAndOrganizationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingencies" xlink:href="pwr-20180930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesIndemnitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesIndemnitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLegalProceedingsDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLegalProceedingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesLettersOfCreditDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesLettersOfCreditDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CommitmentsAndContingenciesTables" xlink:href="pwr-20180930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheets" xlink:href="pwr-20180930.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="pwr-20180930.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/CondensedConsolidatedStatementsOfOperations" xlink:href="pwr-20180930.xsd#CondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligations" xlink:href="pwr-20180930.xsd#DebtObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:href="pwr-20180930.xsd#DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:href="pwr-20180930.xsd#DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsLongTermDebtObligationsDetail" xlink:href="pwr-20180930.xsd#DebtObligationsLongTermDebtObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsOtherFacilitiesDetails" xlink:href="pwr-20180930.xsd#DebtObligationsOtherFacilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:href="pwr-20180930.xsd#DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DebtObligationsTables" xlink:href="pwr-20180930.xsd#DebtObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/DocumentAndEntityInformation" xlink:href="pwr-20180930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/Equity" xlink:href="pwr-20180930.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensation" xlink:href="pwr-20180930.xsd#EquityBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationStockIncentivePlansDetail" xlink:href="pwr-20180930.xsd#EquityBasedCompensationStockIncentivePlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityBasedCompensationTables" xlink:href="pwr-20180930.xsd#EquityBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityExchangeableSharesAndPreferredStockDetail" xlink:href="pwr-20180930.xsd#EquityExchangeableSharesAndPreferredStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityNonControllingInterestsDetail" xlink:href="pwr-20180930.xsd#EquityNonControllingInterestsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/EquityTreasuryStockDetail" xlink:href="pwr-20180930.xsd#EquityTreasuryStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="pwr-20180930.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncements" xlink:href="pwr-20180930.xsd#NewAccountingPronouncements" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/NewAccountingPronouncementsDetail" xlink:href="pwr-20180930.xsd#NewAccountingPronouncementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformation" xlink:href="pwr-20180930.xsd#PerShareInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:href="pwr-20180930.xsd#PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationDetail" xlink:href="pwr-20180930.xsd#PerShareInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/PerShareInformationTables" xlink:href="pwr-20180930.xsd#PerShareInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformation" xlink:href="pwr-20180930.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationDetail" xlink:href="pwr-20180930.xsd#SegmentInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationSummarizedFinancialInformationDetail" xlink:href="pwr-20180930.xsd#SegmentInformationSummarizedFinancialInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SegmentInformationTables" xlink:href="pwr-20180930.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEvent" xlink:href="pwr-20180930.xsd#SubsequentEvent" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SubsequentEventDetails" xlink:href="pwr-20180930.xsd#SubsequentEventDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="pwr-20180930.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformation" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:href="pwr-20180930.xsd#SupplementalCashFlowInformationTables" xlink:type="simple" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/Acquisitions" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/AcquisitionsAggregateConsiderationPaidOrPayableAndAllocationNetAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_8ce68675-8129-3ab4-cbd9-33127f150e28" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_8ce68675-8129-3ab4-cbd9-33127f150e28" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent_2faa0aa4-667d-e252-4364-7bd5766a7c73" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractAssetsCurrent_2faa0aa4-667d-e252-4364-7bd5766a7c73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_787094fe-6809-3d48-32a0-016251d35e96" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_787094fe-6809-3d48-32a0-016251d35e96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_090d08a1-b8fd-3634-47b8-7dcb68699de1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_090d08a1-b8fd-3634-47b8-7dcb68699de1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_0babce17-76af-948e-bcee-dc3ef7464b2a" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_0babce17-76af-948e-bcee-dc3ef7464b2a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_588b212f-0609-2b89-932f-cbe7e57377ff" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_588b212f-0609-2b89-932f-cbe7e57377ff" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities" xlink:label="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities_840b608a-1272-2a5b-1f98-7bd5776fba43" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_pwr_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedContractLiabilities_840b608a-1272-2a5b-1f98-7bd5776fba43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_c1d14e08-6047-bdc6-cd0b-14a44c47d9d6" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_c1d14e08-6047-bdc6-cd0b-14a44c47d9d6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_ca5b5f1d-dfc3-4674-aee8-5c9edec064b4" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_ca5b5f1d-dfc3-4674-aee8-5c9edec064b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_403bd7bd-aec1-42d0-9dba-3894488c17e9" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_1184f71b-eb96-34a8-7c86-c43ab50947af" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_403bd7bd-aec1-42d0-9dba-3894488c17e9" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/AcquisitionsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/AcquisitionsEstimatedFairValuesOfIdentifiableIntangibleAssetsAndRelatedWeightedAverageAmortizationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/AcquisitionsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/AcquisitionsUnauditedSupplementalProFormaResultsOfOperationsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/BusinessAndOrganization" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/BusinessAndOrganizationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesCommittedExpendituresDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesConcentrationsOfCreditRiskDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesContingentConsiderationLiabilitiesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesIndemnitiesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesInsuranceDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLeasesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLegalProceedingsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesLettersOfCreditDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesMinimumLeasePaymentsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_f3d34f3b-9a0c-658e-29c2-4e3a93f2cd51" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_f3d34f3b-9a0c-658e-29c2-4e3a93f2cd51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesPerformanceBondsAndParentGuaranteesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_2dcbbde2-9146-a0ba-7f6c-c71b481e0841" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_LiabilitiesCurrent_2dcbbde2-9146-a0ba-7f6c-c71b481e0841" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtCurrent" xlink:label="loc_us-gaap_DebtCurrent_8f5a3111-d5cb-a384-b222-de3b1f0ebb53" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2dcbbde2-9146-a0ba-7f6c-c71b481e0841" xlink:to="loc_us-gaap_DebtCurrent_8f5a3111-d5cb-a384-b222-de3b1f0ebb53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_47ecca60-0dc8-25b2-6295-72031a21e0cb" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2dcbbde2-9146-a0ba-7f6c-c71b481e0841" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_47ecca60-0dc8-25b2-6295-72031a21e0cb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_655a4d0e-4b88-088e-f4dd-52a1160dbd00" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_2dcbbde2-9146-a0ba-7f6c-c71b481e0841" xlink:to="loc_us-gaap_ContractWithCustomerLiability_655a4d0e-4b88-088e-f4dd-52a1160dbd00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_fcfc6b17-bfc5-2ebc-3fc1-751aa446a572" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_fcfc6b17-bfc5-2ebc-3fc1-751aa446a572" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d3ba3006-9df7-8186-2eb2-dc5094562cfe" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d3ba3006-9df7-8186-2eb2-dc5094562cfe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_bba08e5f-78e8-6c25-01a4-6720051135cc" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_bba08e5f-78e8-6c25-01a4-6720051135cc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_df284507-8ac7-eed1-41db-05e81b70be6d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_df284507-8ac7-eed1-41db-05e81b70be6d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_70b30340-b55c-aed7-73f5-36d397294f84" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_TreasuryStockValue_70b30340-b55c-aed7-73f5-36d397294f84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_a9feabf5-0bf0-3efe-740e-f5e41a4b3194" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_MinorityInterest_a9feabf5-0bf0-3efe-740e-f5e41a4b3194" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_928a1618-af56-709a-989c-a303706b8ca2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_928a1618-af56-709a-989c-a303706b8ca2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerAssetNet" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_d8dfd6ae-e36f-2031-12fb-37ed4077e692" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_d8dfd6ae-e36f-2031-12fb-37ed4077e692" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_66bcd79a-a1c3-c24d-b8b4-7a0ce373714b" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:to="loc_us-gaap_InventoryNet_66bcd79a-a1c3-c24d-b8b4-7a0ce373714b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_ce9014ac-0ac4-6ed2-b53f-a0edc046d6b4" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_d79dcc1c-93de-0ecd-2bd5-7c1f224c9b98" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_ce9014ac-0ac4-6ed2-b53f-a0edc046d6b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f37ad080-c77a-efc5-c936-389b16abc420" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f37ad080-c77a-efc5-c936-389b16abc420" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_ddb0d184-2205-2a10-5b0e-faf2ccd717ae" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_ddb0d184-2205-2a10-5b0e-faf2ccd717ae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_af012273-e8ee-655c-daa2-86b96989d377" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_af012273-e8ee-655c-daa2-86b96989d377" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_38b416a4-4707-fba3-1084-9b8a37fd745a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_Depreciation_38b416a4-4707-fba3-1084-9b8a37fd745a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_a8656384-f7ca-f6e9-7877-ac1b97f5601a" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_a8656384-f7ca-f6e9-7877-ac1b97f5601a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_d01a4d5f-b660-27b4-db84-9a80227862fc" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_d01a4d5f-b660-27b4-db84-9a80227862fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_b412c390-dfec-d4c8-f13e-036e3b49278c" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_b412c390-dfec-d4c8-f13e-036e3b49278c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_ef1b7738-192b-a4ca-6396-5577f303c271" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_ef1b7738-192b-a4ca-6396-5577f303c271" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_db31a483-6e91-bb9e-3d96-563ab3da2f2c" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_db31a483-6e91-bb9e-3d96-563ab3da2f2c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_72092153-6d23-6ed2-386d-5561faf5c226" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_72092153-6d23-6ed2-386d-5561faf5c226" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" xlink:type="locator" />
    <link:calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapital" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:type="locator" />
    <link:calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6d89f221-3ede-36b2-fcad-4a4ce1606f6a" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6d89f221-3ede-36b2-fcad-4a4ce1606f6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromInsuranceSettlementInvestingActivities" xlink:label="loc_us-gaap_ProceedsFromInsuranceSettlementInvestingActivities_74cf7c3a-f3d3-46c0-ad37-8c8e1e08d100" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromInsuranceSettlementInvestingActivities_74cf7c3a-f3d3-46c0-ad37-8c8e1e08d100" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_80abba07-181c-6ed2-349d-9d7dfc078eab" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_80abba07-181c-6ed2-349d-9d7dfc078eab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireIntangibleAssets" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_1e99261d-1af1-2d77-636d-890a4a9c4511" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_1e99261d-1af1-2d77-636d-890a4a9c4511" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_94ef4f28-36c0-ebcc-c252-3b37968b424e" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_94ef4f28-36c0-ebcc-c252-3b37968b424e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_2e493320-ebb4-7df2-c1f0-2dc8298386c7" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_2e493320-ebb4-7df2-c1f0-2dc8298386c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_54e087e7-dea1-4188-710c-f95dcb130e6e" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_54e087e7-dea1-4188-710c-f95dcb130e6e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_632129be-5229-a7d0-e53b-c34bdd2c2b9a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_632129be-5229-a7d0-e53b-c34bdd2c2b9a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_ffdfa640-a405-1cf4-b7ca-4f26d8d30e65" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_ffdfa640-a405-1cf4-b7ca-4f26d8d30e65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfOtherLongTermDebt" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_407e71b9-1eb7-c52c-3cea-1d5ca72c07e8" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_407e71b9-1eb7-c52c-3cea-1d5ca72c07e8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_0ad26e66-f00d-eb22-5d27-4b24aacf3047" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_0ad26e66-f00d-eb22-5d27-4b24aacf3047" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfDividendsMinorityInterest" xlink:label="loc_us-gaap_PaymentsOfDividendsMinorityInterest_69563a84-74b9-c6d2-b331-4b99188223c3" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsOfDividendsMinorityInterest_69563a84-74b9-c6d2-b331-4b99188223c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_706d3cc5-3df5-1e1a-5067-c02728407eb6" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_706d3cc5-3df5-1e1a-5067-c02728407eb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d4a92697-d008-996b-823a-bd9a56a04b3a" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d4a92697-d008-996b-823a-bd9a56a04b3a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_fef949b5-2828-00ed-cf5f-f47e165ae8a1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_fef949b5-2828-00ed-cf5f-f47e165ae8a1" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_b087c8bb-e0f6-4c7f-883c-027f52d32745" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_b087c8bb-e0f6-4c7f-883c-027f52d32745" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ff106bf5-082b-8f58-cc36-c7f91866b7d3" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ff106bf5-082b-8f58-cc36-c7f91866b7d3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/CondensedConsolidatedStatementsOfOperations" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:to="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_df00e688-c7aa-f044-9cba-c48e7c14e35b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:to="loc_us-gaap_GrossProfit_df00e688-c7aa-f044-9cba-c48e7c14e35b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1c604cfe-da19-5194-72b6-98be0130cfb7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_df00e688-c7aa-f044-9cba-c48e7c14e35b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1c604cfe-da19-5194-72b6-98be0130cfb7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_1c65a201-fd8e-32d7-dad9-c6d1d5719594" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_df00e688-c7aa-f044-9cba-c48e7c14e35b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_1c65a201-fd8e-32d7-dad9-c6d1d5719594" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_693c47dd-e6fa-9c85-6a65-7baa26f76b5e" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_693c47dd-e6fa-9c85-6a65-7baa26f76b5e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_a8656384-f7ca-f6e9-7877-ac1b97f5601a" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_5c890570-5904-7978-36d8-35b96dcf45ab" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_a8656384-f7ca-f6e9-7877-ac1b97f5601a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:to="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_5fcda05e-5b0d-7f20-111d-115dec47eebc" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:to="loc_us-gaap_InvestmentIncomeInterest_5fcda05e-5b0d-7f20-111d-115dec47eebc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_41e96f8d-e499-8de8-69a8-27f1c7d4df6e" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4d8b6d19-6a54-06aa-2077-c10380bd20d1" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_41e96f8d-e499-8de8-69a8-27f1c7d4df6e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f5ae002e-8316-7bc0-1b41-6cd171b53db3" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f5ae002e-8316-7bc0-1b41-6cd171b53db3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligations" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsBorrowingsUnderCurrentAndPriorCreditFacilityAndApplicableInterestRatesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsCreditFacilityCurrentBorrowingsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsCreditFacilityTermsUnderAmendedAndRestatedCreditAgreementDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsCurrentMaturitiesOfLongTermDebtAndShortTermDebtDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtCurrent" xlink:label="loc_us-gaap_DebtCurrent_8f5a3111-d5cb-a384-b222-de3b1f0ebb53" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_422d7c41-753d-7765-5880-50978d071d31" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtCurrent_8f5a3111-d5cb-a384-b222-de3b1f0ebb53" xlink:to="loc_us-gaap_ShortTermBorrowings_422d7c41-753d-7765-5880-50978d071d31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_0d8925ae-714a-26e4-aa69-2d9eac65a5c6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtCurrent_8f5a3111-d5cb-a384-b222-de3b1f0ebb53" xlink:to="loc_us-gaap_LongTermDebtCurrent_0d8925ae-714a-26e4-aa69-2d9eac65a5c6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsLongTermDebtObligationsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_65fb8a1f-903e-a726-6d94-3932acece0b3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LineOfCredit_65fb8a1f-903e-a726-6d94-3932acece0b3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaap_OtherLongTermDebt_2822e451-0377-c062-4be6-063b9110832b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_OtherLongTermDebt_2822e451-0377-c062-4be6-063b9110832b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalLeaseObligations" xlink:label="loc_us-gaap_CapitalLeaseObligations_275523fc-fc8d-62f8-516d-aca3793246f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_CapitalLeaseObligations_275523fc-fc8d-62f8-516d-aca3793246f2" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsOtherFacilitiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsSeniorSecuredCreditFacilityDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DebtObligationsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/Equity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationGrantDateFairValueForAwardsOfPerformanceUnitsInputsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationPerformanceUnitsToBeSettledInCommonStockDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCashDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationRsusToBeSettledInCommonStockDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationStockIncentivePlansDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityBasedCompensationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityExchangeableSharesAndPreferredStockDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityNonControllingInterestsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/EquityTreasuryStockDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssets" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsEstimatedFutureAggregateAmortizationExpenseOfIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_eb702279-dcb4-9c67-f159-33a06e124024" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_eb702279-dcb4-9c67-f159-33a06e124024" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_28c91f3b-370e-e76f-4199-69e4166aabc6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_28c91f3b-370e-e76f-4199-69e4166aabc6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_f7796428-4176-97fe-5145-79a026d8547a" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_f7796428-4176-97fe-5145-79a026d8547a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_71fd8e03-8eaf-f20c-786b-5e0492fb281b" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_71fd8e03-8eaf-f20c-786b-5e0492fb281b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_8d652bfd-fc92-51b1-30d6-b90c4a94f960" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_8d652bfd-fc92-51b1-30d6-b90c4a94f960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_0e7343bd-e798-afc0-7fcc-ed296ae9f91c" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d3bdc20c-5c58-6be6-d756-0ace6a97f212" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_0e7343bd-e798-afc0-7fcc-ed296ae9f91c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_af012273-e8ee-655c-daa2-86b96989d377" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_e52879aa-5fc1-863a-9bc7-07b154238ef5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_af012273-e8ee-655c-daa2-86b96989d377" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_e52879aa-5fc1-863a-9bc7-07b154238ef5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c9279b6a-f262-f140-7696-5ec40778343f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_af012273-e8ee-655c-daa2-86b96989d377" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c9279b6a-f262-f140-7696-5ec40778343f" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsSummaryOfChangesInGoodwillDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_ffb428e6-c1e5-8a3b-839c-4bf16d5f7341" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:to="loc_us-gaap_GoodwillGross_ffb428e6-c1e5-8a3b-839c-4bf16d5f7341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_72c8a016-f15a-cdb4-6551-142480137e47" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_72c8a016-f15a-cdb4-6551-142480137e47" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/NewAccountingPronouncements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/NewAccountingPronouncementsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/PerShareInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/PerShareInformationBasicAndDilutedEarningsPerShareAttributableToCommonStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/PerShareInformationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/PerShareInformationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SegmentInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SegmentInformationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SegmentInformationSummarizedFinancialInformationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SubsequentEvent" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SubsequentEventDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesContractAssetsAndLiabilitiesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesCurrentAndLongTermAccountsReceivableAndNotesReceivableAndAllowanceForDoubtfulAccountsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesFairValueMeasurementsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesGoodwillDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesIncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_dbb680d2-c2f3-ea50-13e2-7bd576a4b6c0" xlink:type="locator" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit_d8f7b1dc-30b6-187b-fb54-7bd5775c0dd2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_dbb680d2-c2f3-ea50-13e2-7bd576a4b6c0" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingChangeInTaxRateProvisionalIncomeTaxExpenseBenefit_d8f7b1dc-30b6-187b-fb54-7bd5775c0dd2" xlink:type="arc" />
    <link:loc xlink:href="pwr-20180930.xsd#pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense" xlink:label="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_3590a83a-5f6c-5bf6-9de9-7bd577f2ad8d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingProvisionalIncomeTaxExpenseBenefit_dbb680d2-c2f3-ea50-13e2-7bd576a4b6c0" xlink:to="loc_pwr_TaxCutsAndJobsActOf2017IncompleteAccountingTransitionTaxForAccumulatedForeignEarningsProvisionalIncomeTaxExpense_3590a83a-5f6c-5bf6-9de9-7bd577f2ad8d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInsuranceDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInAffiliatesAndOtherEntitiesDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesOtherIntangibleAssetsDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPerformanceObligationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueDisaggregatedByGeographicLocationAndContractTypeDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesSignificantEstimatesUsedByManagementInDeterminingFairValuesOfCustomerRelationshipsAcquiredDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesStockBasedCompensationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationAdditionalSupplementalCashFlowInformationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationDetail" xlink:type="extended" />
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationNetEffectsOfChangesInOperatingAssetsAndLiabilitiesNetOnCashFlowsFromOperatingActivitiesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapital" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_4bb1a337-920e-9c42-98f8-69fec71c4f6a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_4bb1a337-920e-9c42-98f8-69fec71c4f6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerAsset" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_335f837a-5be7-880a-50f9-2dc4be725c2b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_335f837a-5be7-880a-50f9-2dc4be725c2b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_334f1d33-7cae-7fd2-9d83-bb387fc2f3dd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_334f1d33-7cae-7fd2-9d83-bb387fc2f3dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_0e4168a9-901d-abb5-15c0-3622e9e2c070" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_0e4168a9-901d-abb5-15c0-3622e9e2c070" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities_c7f00aa8-2173-59e9-a1bf-8080d168d3b9" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities_c7f00aa8-2173-59e9-a1bf-8080d168d3b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_7d3f88de-7d0f-fe63-f176-2a8af9ecbcbd" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_7d3f88de-7d0f-fe63-f176-2a8af9ecbcbd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_a9646808-098c-8496-e17a-df690055019e" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapital_0d84972d-26a1-e50e-67cb-502f125cb65c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_a9646808-098c-8496-e17a-df690055019e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationReconciliationOfCashCashEquivalentsAndRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1ce4b89e-fa52-7101-5bea-622168a4559a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1ce4b89e-fa52-7101-5bea-622168a4559a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_61d6663d-71dc-4159-c90b-9591805979c3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1ce4b89e-fa52-7101-5bea-622168a4559a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_61d6663d-71dc-4159-c90b-9591805979c3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://quantaservices.com/role/SupplementalCashFlowInformationTables" xlink:type="extended" />
</link:linkbase>
