<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>140</ContextCount>
  <ElementCount>282</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>62</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>22</UnitCount>
  <MyReports>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONSOLIDATED STATEMENTS OF EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Statement - CONSOLIDATED BALANCE SHEETS (KILROY REALTY, L.P.)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDBALANCESHEETSKILROYREALTYLP</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (KILROY REALTY, L.P.)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Statement - CONSOLIDATED BALANCE SHEETS (KILROY REALTY, L.P.)(Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDBALANCESHEETSKILROYREALTYLPParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (KILROY REALTY, L.P.)(Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS (KILROY REALTY, L.P.)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSKILROYREALTYLP</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS (KILROY REALTY, L.P.)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Statement - CONSOLIDATED STATEMENTS OF CAPITAL (KILROY REALTY, L.P.)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFCAPITALKILROYREALTYLP</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CAPITAL (KILROY REALTY, L.P.)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Statement - CONSOLIDATED STATEMENTS OF CAPITAL (KILROY REALTY, L.P.) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFCAPITALKILROYREALTYLPParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CAPITAL (KILROY REALTY, L.P.) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (KILROY REALTY, L.P.)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSKILROYREALTYLP</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (KILROY REALTY, L.P.)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Organization, Ownership, and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentation</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Prepaid Expenses and Other Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/PrepaidExpensesandOtherAssetsNet</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Secured and Unsecured Debt of the Operating Partnership</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnership</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Stockholders' Equity of the Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/StockholdersEquityoftheCompany</Role>
      <ShortName>Stockholders' Equity of the Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Noncontrolling Interests on the Company's Consolidated Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NoncontrollingInterestsontheCompanysConsolidatedFinancialStatements</Role>
      <ShortName>Noncontrolling Interests on the Company's Consolidated Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Share-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/ShareBasedCompensation</Role>
      <ShortName>Share-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Rental Income and Future Minimum Rent</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/RentalIncomeandFutureMinimumRent</Role>
      <ShortName>Rental Income and Future Minimum Rent</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Fair Value Measurements and Disclosures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/FairValueMeasurementsandDisclosures</Role>
      <ShortName>Fair Value Measurements and Disclosures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Net Income Available to Common Stockholders Per Share of the Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonStockholdersPerShareoftheCompany</Role>
      <ShortName>Net Income Available to Common Stockholders Per Share of the Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Net Income Available to Common Unitholders Per Unit of the Operating Partnership</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonUnitholdersPerUnitoftheOperatingPartnership</Role>
      <ShortName>Net Income Available to Common Unitholders Per Unit of the Operating Partnership</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Supplemental Cash Flow Information of the Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheCompany</Role>
      <ShortName>Supplemental Cash Flow Information of the Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952175 - Disclosure - Supplemental Cash Flow Information of the Operating Partnership</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheOperatingPartnership</Role>
      <ShortName>Supplemental Cash Flow Information of the Operating Partnership</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9952176 - Disclosure - Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/Segments</Role>
      <ShortName>Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Organization, Ownership, and Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentationPolicies</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Organization, Ownership, and Basis of Presentation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentationTables</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentation</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Prepaid Expenses and Other Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/PrepaidExpensesandOtherAssetsNetTables</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/PrepaidExpensesandOtherAssetsNet</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Secured and Unsecured Debt of the Operating Partnership (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnershipTables</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnership</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Share-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/ShareBasedCompensationTables</Role>
      <ShortName>Share-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/ShareBasedCompensation</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Rental Income and Future Minimum Rent (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/RentalIncomeandFutureMinimumRentTables</Role>
      <ShortName>Rental Income and Future Minimum Rent (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/RentalIncomeandFutureMinimumRent</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/CommitmentsandContingencies</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Fair Value Measurements and Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/FairValueMeasurementsandDisclosuresTables</Role>
      <ShortName>Fair Value Measurements and Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/FairValueMeasurementsandDisclosures</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Net Income Available to Common Stockholders Per Share of the Company (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonStockholdersPerShareoftheCompanyTables</Role>
      <ShortName>Net Income Available to Common Stockholders Per Share of the Company (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonStockholdersPerShareoftheCompany</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Net Income Available to Common Unitholders Per Unit of the Operating Partnership (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonUnitholdersPerUnitoftheOperatingPartnershipTables</Role>
      <ShortName>Net Income Available to Common Unitholders Per Unit of the Operating Partnership (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonUnitholdersPerUnitoftheOperatingPartnership</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Supplemental Cash Flow Information of the Company (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheCompanyTables</Role>
      <ShortName>Supplemental Cash Flow Information of the Company (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheCompany</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Supplemental Cash Flow Information of the Operating Partnership (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheOperatingPartnershipTables</Role>
      <ShortName>Supplemental Cash Flow Information of the Operating Partnership (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheOperatingPartnership</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SegmentsTables</Role>
      <ShortName>Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/Segments</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Organization, Ownership, and Basis of Presentation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentationAdditionalInformationDetails</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Organization, Ownership, and Basis of Presentation - Operating Properties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentationOperatingPropertiesDetails</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation - Operating Properties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Organization, Ownership, and Basis of Presentation - Consolidated Property Partnership Ownership Percentage (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/OrganizationOwnershipandBasisofPresentationConsolidatedPropertyPartnershipOwnershipPercentageDetails</Role>
      <ShortName>Organization, Ownership, and Basis of Presentation - Consolidated Property Partnership Ownership Percentage (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Prepaid Expenses and Other Assets, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/PrepaidExpensesandOtherAssetsNetDetails</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/PrepaidExpensesandOtherAssetsNetTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Secured and Unsecured Debt of the Operating Partnership - Unsecured Senior Notes, Unsecured Revolving Credit Facility and Term Loan Facility (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnershipUnsecuredSeniorNotesUnsecuredRevolvingCreditFacilityandTermLoanFacilityDetails</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership - Unsecured Senior Notes, Unsecured Revolving Credit Facility and Term Loan Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Secured and Unsecured Debt of the Operating Partnership - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnershipAdditionalInformationDetails</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Secured and Unsecured Debt of the Operating Partnership - Debt Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnershipDebtMaturitiesDetails</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership - Debt Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Secured and Unsecured Debt of the Operating Partnership - Capitalized Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SecuredandUnsecuredDebtoftheOperatingPartnershipCapitalizedInterestDetails</Role>
      <ShortName>Secured and Unsecured Debt of the Operating Partnership - Capitalized Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Stockholders' Equity of the Company (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/StockholdersEquityoftheCompanyDetails</Role>
      <ShortName>Stockholders' Equity of the Company (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/StockholdersEquityoftheCompany</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Noncontrolling Interests on the Company's Consolidated Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NoncontrollingInterestsontheCompanysConsolidatedFinancialStatementsDetails</Role>
      <ShortName>Noncontrolling Interests on the Company's Consolidated Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/NoncontrollingInterestsontheCompanysConsolidatedFinancialStatements</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Share-Based Compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/ShareBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Share-Based Compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Share-Based Compensation - Fair Value Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/ShareBasedCompensationFairValueAssumptionsDetails</Role>
      <ShortName>Share-Based Compensation - Fair Value Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Rental Income and Future Minimum Rent - Rental income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/RentalIncomeandFutureMinimumRentRentalincomeDetails</Role>
      <ShortName>Rental Income and Future Minimum Rent - Rental income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Rental Income and Future Minimum Rent - Future Contractual Minimum Rent (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/RentalIncomeandFutureMinimumRentFutureContractualMinimumRentDetails</Role>
      <ShortName>Rental Income and Future Minimum Rent - Future Contractual Minimum Rent (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CommitmentsandContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Commitment and Contingencies - Accrued Environmental Remediation Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/CommitmentandContingenciesAccruedEnvironmentalRemediationLiabilitiesDetails</Role>
      <ShortName>Commitment and Contingencies - Accrued Environmental Remediation Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Fair Value Measurements and Disclosures - Assets and Liabilities Reported at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/FairValueMeasurementsandDisclosuresAssetsandLiabilitiesReportedatFairValueDetails</Role>
      <ShortName>Fair Value Measurements and Disclosures - Assets and Liabilities Reported at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Fair Value Measurements and Disclosures - Financial Instruments Disclosed at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/FairValueMeasurementsandDisclosuresFinancialInstrumentsDisclosedatFairValueDetails</Role>
      <ShortName>Fair Value Measurements and Disclosures - Financial Instruments Disclosed at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Net Income Available to Common Stockholders Per Share of the Company (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonStockholdersPerShareoftheCompanyDetails</Role>
      <ShortName>Net Income Available to Common Stockholders Per Share of the Company (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonStockholdersPerShareoftheCompanyTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Net Income Available to Common Unitholders Per Unit of the Operating Partnership (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonUnitholdersPerUnitoftheOperatingPartnershipDetails</Role>
      <ShortName>Net Income Available to Common Unitholders Per Unit of the Operating Partnership (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/NetIncomeAvailabletoCommonUnitholdersPerUnitoftheOperatingPartnershipTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Supplemental Cash Flow Information of the Company - Supplemental Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheCompanySupplementalCashFlowDetails</Role>
      <ShortName>Supplemental Cash Flow Information of the Company - Supplemental Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Supplemental Cash Flow Information of the Company - Cash and Cash Equivalents and Restricted Cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheCompanyCashandCashEquivalentsandRestrictedCashDetails</Role>
      <ShortName>Supplemental Cash Flow Information of the Company - Cash and Cash Equivalents and Restricted Cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Supplemental Cash Flow Information of the Operating Partnership - Supplemental Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheOperatingPartnershipSupplementalCashFlowDetails</Role>
      <ShortName>Supplemental Cash Flow Information of the Operating Partnership - Supplemental Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Supplemental Cash Flow Information of the Operating Partnership - Reconciliation of Cash and Cash Equivalents and Restricted Cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SupplementalCashFlowInformationoftheOperatingPartnershipReconciliationofCashandCashEquivalentsandRestrictedCashDetails</Role>
      <ShortName>Supplemental Cash Flow Information of the Operating Partnership - Reconciliation of Cash and Cash Equivalents and Restricted Cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="krc-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://kilroyrealty.com/role/SegmentsDetails</Role>
      <ShortName>Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://kilroyrealty.com/role/SegmentsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="krc-20250331.htm">krc-20250331.htm</File>
    <File>krc-20250331.xsd</File>
    <File>krc-20250331_cal.xml</File>
    <File>krc-20250331_def.xml</File>
    <File>krc-20250331_lab.xml</File>
    <File>krc-20250331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="716">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="46">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
