<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.8.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>838</ContextCount>
  <ElementCount>572</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>406</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>13</UnitCount>
  <MyReports>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Comprehensive Income/Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income/Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedStatementsOfEquity</Role>
      <ShortName>Consolidated Statements of Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1004501 - Statement - Consolidated Statements of Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedStatementsOfEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/Organization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Concentration of Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConcentrationOfRevenue</Role>
      <ShortName>Concentration of Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Properties, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNet</Role>
      <ShortName>Properties, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Real Estate Joint Ventures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RealEstateJointVentures</Role>
      <ShortName>Real Estate Joint Ventures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Intangible Assets on Real Estate Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/IntangibleAssetsOnRealEstateAcquisitions</Role>
      <ShortName>Intangible Assets on Real Estate Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Investing Receivables</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InvestingReceivables</Role>
      <ShortName>Investing Receivables</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Prepaid Expenses and Other Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PrepaidExpensesAndOtherAssetsNet</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Debt, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNet</Role>
      <ShortName>Debt, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Interest Rate Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InterestRateDerivatives</Role>
      <ShortName>Interest Rate Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Redeemable Noncontrolling Interests</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RedeemableNoncontrollingInterests</Role>
      <ShortName>Redeemable Noncontrolling Interests</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Equity - COPT and Subsidiaries</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EquityCoptAndSubsidiaries</Role>
      <ShortName>Equity - COPT and Subsidiaries</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Equity - COPLP and Subsidiaries</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EquityCoplpAndSubsidiaries</Role>
      <ShortName>Equity - COPLP and Subsidiaries</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Share-Based Compensation and Other Compensation Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMatters</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Operating Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/OperatingLeases</Role>
      <ShortName>Operating Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Information by Business Segment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegment</Role>
      <ShortName>Information by Business Segment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EarningsPerShareEpsAndEarningsPerUnitEpu</Role>
      <ShortName>Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2120100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2121100 - Disclosure - Quarterly Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/QuarterlyDataUnaudited</Role>
      <ShortName>Quarterly Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2122100 - Schedule - Schedule II - Valuation and Qualifying Accounts (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.copt.com/role/ScheduleIiValuationAndQualifyingAccountsNotes</Role>
      <ShortName>Schedule II - Valuation and Qualifying Accounts (Notes)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2124100 - Schedule - Schedule III - Real Estate and Accumulated Depreciation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ScheduleIiiRealEstateAndAccumulatedDepreciation</Role>
      <ShortName>Schedule III - Real Estate and Accumulated Depreciation</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2302302 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Properties, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetTables</Role>
      <ShortName>Properties, Net (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Real Estate Joint Ventures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RealEstateJointVenturesTables</Role>
      <ShortName>Real Estate Joint Ventures (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Intangible Assets on Real Estate Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/IntangibleAssetsOnRealEstateAcquisitionsTables</Role>
      <ShortName>Intangible Assets on Real Estate Acquisitions (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Investing Receivables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InvestingReceivablesTables</Role>
      <ShortName>Investing Receivables (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Prepaid Expenses and Other Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PrepaidExpensesAndOtherAssetsNetTables</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Debt, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNetTables</Role>
      <ShortName>Debt, Net (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Interest Rate Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InterestRateDerivativesTables</Role>
      <ShortName>Interest Rate Derivatives (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Redeemable Noncontrolling Interests (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RedeemableNoncontrollingInterestsTables</Role>
      <ShortName>Redeemable Noncontrolling Interests (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2316301 - Disclosure - Share-Based Compensation and Other Compensation Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersTables</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2317301 - Disclosure - Operating Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/OperatingLeasesTables</Role>
      <ShortName>Operating Leases (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2318301 - Disclosure - Information by Business Segment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegmentTables</Role>
      <ShortName>Information by Business Segment (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2319301 - Disclosure - Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EarningsPerShareEpsAndEarningsPerUnitEpuTables</Role>
      <ShortName>Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2320301 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/CommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2321301 - Disclosure - Quarterly Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/QuarterlyDataUnauditedTables</Role>
      <ShortName>Quarterly Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2401401 - Disclosure - Organization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/OrganizationDetails</Role>
      <ShortName>Organization (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2401402 - Disclosure - Organization (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/OrganizationDetails2</Role>
      <ShortName>Organization (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2402404 - Disclosure - Summary of Significant Accounting Policies (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPoliciesDetails1</Role>
      <ShortName>Summary of Significant Accounting Policies (Details 1)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2402405 - Disclosure - Summary of Significant Accounting Policies (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/SummaryOfSignificantAccountingPoliciesDetails2</Role>
      <ShortName>Summary of Significant Accounting Policies (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2403403 - Disclosure - Fair Value Measurements (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurementsDetails2</Role>
      <ShortName>Fair Value Measurements (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2403404 - Disclosure - Fair Value Measurements (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurementsDetails3</Role>
      <ShortName>Fair Value Measurements (Details 3)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2403405 - Disclosure - Fair Value Measurements (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/FairValueMeasurementsDetails4</Role>
      <ShortName>Fair Value Measurements (Details 4)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Concentration of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ConcentrationOfRevenueDetails</Role>
      <ShortName>Concentration of Revenue (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Properties, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetDetails</Role>
      <ShortName>Properties, Net (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Properties, Net (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetDetails2</Role>
      <ShortName>Properties, Net (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Properties, Net (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetDetails3</Role>
      <ShortName>Properties, Net (Details 3)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2405405 - Disclosure - Properties, Net (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetDetails4</Role>
      <ShortName>Properties, Net (Details 4)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2405406 - Disclosure - Properties, Net (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PropertiesNetDetails5</Role>
      <ShortName>Properties, Net (Details 5)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Real Estate Joint Ventures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RealEstateJointVenturesDetails</Role>
      <ShortName>Real Estate Joint Ventures (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Intangible Assets on Real Estate Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/IntangibleAssetsOnRealEstateAcquisitionsDetails</Role>
      <ShortName>Intangible Assets on Real Estate Acquisitions (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Investing Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InvestingReceivablesDetails</Role>
      <ShortName>Investing Receivables (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Prepaid Expenses and Other Assets, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PrepaidExpensesAndOtherAssetsNetDetails</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Prepaid Expenses and Other Assets, Net (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/PrepaidExpensesAndOtherAssetsNetDetails2</Role>
      <ShortName>Prepaid Expenses and Other Assets, Net (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Debt, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNetDetails</Role>
      <ShortName>Debt, Net (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Debt, Net (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNetDetails2</Role>
      <ShortName>Debt, Net (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2411404 - Disclosure - Debt, Net (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNetDetails3</Role>
      <ShortName>Debt, Net (Details 3)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2411405 - Disclosure - Debt, Net (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/DebtNetDetails4</Role>
      <ShortName>Debt, Net (Details 4)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Interest Rate Derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InterestRateDerivativesDetails</Role>
      <ShortName>Interest Rate Derivatives (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Redeemable Noncontrolling Interests (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/RedeemableNoncontrollingInterestsDetails</Role>
      <ShortName>Redeemable Noncontrolling Interests (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2414401 - Disclosure - Equity - COPT and Subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EquityCoptAndSubsidiariesDetails</Role>
      <ShortName>Equity - COPT and Subsidiaries (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2415401 - Disclosure - Equity - COPLP and Subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EquityCoplpAndSubsidiariesDetails</Role>
      <ShortName>Equity - COPLP and Subsidiaries (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails1</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 1)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails2</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2416404 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails3</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 3)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2416405 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails4</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 4)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2416406 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails5</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 5)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2416407 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails6</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 6)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2416408 - Disclosure - Share-Based Compensation and Other Compensation Matters (Details 7)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ShareBasedCompensationAndOtherCompensationMattersDetails7</Role>
      <ShortName>Share-Based Compensation and Other Compensation Matters (Details 7)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2417402 - Disclosure - Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/OperatingLeasesDetails</Role>
      <ShortName>Operating Leases (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2418402 - Disclosure - Information by Business Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegmentDetails</Role>
      <ShortName>Information by Business Segment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2418403 - Disclosure - Information by Business Segment (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegmentDetails2</Role>
      <ShortName>Information by Business Segment (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2418404 - Disclosure - Information by Business Segment (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegmentDetails3</Role>
      <ShortName>Information by Business Segment (Details 3)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2418405 - Disclosure - Information by Business Segment (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/InformationByBusinessSegmentDetails4</Role>
      <ShortName>Information by Business Segment (Details 4)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2419402 - Disclosure - Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EarningsPerShareEpsAndEarningsPerUnitEpuDetails</Role>
      <ShortName>Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2419403 - Disclosure - Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/EarningsPerShareEpsAndEarningsPerUnitEpuDetails2</Role>
      <ShortName>Earnings Per Share ("EPS") and Earnings Per Unit (“EPU”) (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2420402 - Disclosure - Commitments and Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/CommitmentsAndContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>2420403 - Disclosure - Commitments and Contingencies - Operating Leases Future Minimum Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/CommitmentsAndContingenciesOperatingLeasesFutureMinimumPaymentsDetails</Role>
      <ShortName>Commitments and Contingencies - Operating Leases Future Minimum Payments (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>2420404 - Disclosure - Commitments and Contingencies - Capital Leases Future Minimum Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/CommitmentsAndContingenciesCapitalLeasesFutureMinimumPaymentsDetails</Role>
      <ShortName>Commitments and Contingencies - Capital Leases Future Minimum Payments (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>2421402 - Disclosure - Quarterly Data (Unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/QuarterlyDataUnauditedDetails</Role>
      <ShortName>Quarterly Data (Unaudited) (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>2422401 - Schedule - Schedule II - Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ScheduleIiValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule II - Valuation and Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>2424401 - Schedule - Schedule III - Real Estate and Accumulated Depreciation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ScheduleIiiRealEstateAndAccumulatedDepreciationDetails</Role>
      <ShortName>Schedule III - Real Estate and Accumulated Depreciation (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="ofc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>2424402 - Schedule - Schedule III - Real Estate and Accumulated Depreciation (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.copt.com/role/ScheduleIiiRealEstateAndAccumulatedDepreciationDetails2</Role>
      <ShortName>Schedule III - Real Estate and Accumulated Depreciation (Details 2)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>ofc-20171231.xml</File>
    <File>ofc-20171231.xsd</File>
    <File>ofc-20171231_cal.xml</File>
    <File>ofc-20171231_def.xml</File>
    <File>ofc-20171231_lab.xml</File>
    <File>ofc-20171231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2014-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
