<?xml version="1.0" encoding="utf-8"?>
<!--Generated by DFIN XBRL Instance Document - http://www.dfinsolutions.com/ - Version R3.0 - on 14-March-2023 [06:48:35] {PM}-->
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:xbrldt="http://xbrl.org/2005/xbrldt">
<roleRef xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2022q4/ecd-2022q4.xsd#IndividualsOnly" roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" />
<roleRef xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2022q4/ecd-2022q4.xsd#PvpAdjustmentsOnly" roleURI="http://xbrl.sec.gov/ecd/role/PvpAdjustmentsOnly" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/notAll" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll" />
<definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly">
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/ecd/2022q4/ecd-2022q4.xsd#ecd_AllIndividualsMember" xlink:label="AllIndividualsMember" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_MarkW.SheahanMember" xlink:label="MarkW.SheahanMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllIndividualsMember" xlink:to="MarkW.SheahanMember" order="100" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_PatrickJ.MchaleMember" xlink:label="PatrickJ.MchaleMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllIndividualsMember" xlink:to="PatrickJ.MchaleMember" order="101" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/ecd/role/PvpAdjustmentsOnly">
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/ecd/2022q4/ecd-2022q4.xsd#ecd_AllAdjToCompMember" xlink:label="AllAdjToCompMember" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_ChangeInPensionValueMember" xlink:label="ChangeInPensionValueMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="ChangeInPensionValueMember" order="102" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_ServiceCostMember" xlink:label="ServiceCostMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="ServiceCostMember" order="103" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_PriorServiceCostMember" xlink:label="PriorServiceCostMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="PriorServiceCostMember" order="104" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_ValueOfStockAwardsAndOptionAwardsMember" xlink:label="ValueOfStockAwardsAndOptionAwardsMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="ValueOfStockAwardsAndOptionAwardsMember" order="105" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_YearEndFairValueOfStockAwardsAndOptionAwardsAreOutstandingAndUnvestedMember" xlink:label="YearEndFairValueOfStockAwardsAndOptionAwardsAreOutstandingAndUnvestedMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="YearEndFairValueOfStockAwardsAndOptionAwardsAreOutstandingAndUnvestedMember" order="106" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_ChangeInYearEndFairValueOfStockAwardsAndOptionAwardsGrantedAreOutstandingAndUnvestedAtYearendMember" xlink:label="ChangeInYearEndFairValueOfStockAwardsAndOptionAwardsGrantedAreOutstandingAndUnvestedAtYearendMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="ChangeInYearEndFairValueOfStockAwardsAndOptionAwardsGrantedAreOutstandingAndUnvestedAtYearendMember" order="107" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_ChangeInFairValueAsOfVestingDateOfAnyStockAwardsAndOptionAwardsThatVestedMember" xlink:label="ChangeInFairValueAsOfVestingDateOfAnyStockAwardsAndOptionAwardsThatVestedMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="ChangeInFairValueAsOfVestingDateOfAnyStockAwardsAndOptionAwardsThatVestedMember" order="108" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_FairValueAtEndOfPriorYearOfStockAwardsAndOptionAwardsThatFailedToMeetApplicableVestingConditionsMember" xlink:label="FairValueAtEndOfPriorYearOfStockAwardsAndOptionAwardsThatFailedToMeetApplicableVestingConditionsMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="FairValueAtEndOfPriorYearOfStockAwardsAndOptionAwardsThatFailedToMeetApplicableVestingConditionsMember" order="109" />
<loc xlink:type="locator" xlink:href="ggg-20221230.xsd#ggg_DividendsOrOtherEarningsPaidOnStockAwardsAndOptionAwardsMember" xlink:label="DividendsOrOtherEarningsPaidOnStockAwardsAndOptionAwardsMember" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllAdjToCompMember" xlink:to="DividendsOrOtherEarningsPaidOnStockAwardsAndOptionAwardsMember" order="110" />
</definitionLink>
</linkbase>
