QuickLinks -- Click here to rapidly navigate through this document


Exhibit 5.1

GRAPHIC

  lawyers@saul.com
www.saul.com

March 31, 2009                

Corporate Office Properties Trust
6711 Columbia Gateway Drive
Suite 300
Columbia, Maryland 21046

Ladies and Gentlemen:

        We have acted as Maryland counsel to Corporate Office Properties Trust, a Maryland real estate investment trust (the "Company"), in connection with certain matters of Maryland law arising out of the shelf registration of an indeterminate amount of common shares of beneficial interest of the Company, par value $0.01 per share (the "Common Shares"), preferred shares of beneficial interest of the Company, par value $0.01 per share (the "Preferred Shares"), depositary shares with respect to fractional interests in the Preferred Shares (the "Depositary Shares") and any warrants to purchase Common Shares and/or Preferred Shares (the "Warrants") (each as defined in the below referenced S-3 Registration Statement)(collectively referred to as the "Trust Securities"), proposed to be offered by the Company from time to time, in one or more series, together or separately, at prices and on terms to be determined at the time of offering, all pursuant to a Registration Statement on Form S-3 (the "Registration Statement").

        As a basis for our opinions, we have examined the following documents (collectively, the "Documents"):

        Also, as a basis for these opinions, we have examined the originals or certified copies of the following:

Marc A. Citron—New Jersey Managing Partner

DELAWARE   MARYLAND   NEW JERSEY   NEW YORK   PENNSYLVANIA   WASHINGTON, DC
A DELAWARE LIMITED LIABILITY PARTNERSHIP

        In reaching the opinions set forth below, we have assumed:

        As to various questions of fact material to our opinions, we have relied upon a certificate and representations of Karen M. Singer, as Secretary of the Company, and have assumed that the Secretary's Certificate and representations continue to remain true and complete as of the date of this

2


letter. We have not examined any court records, dockets, or other public records, nor have we investigated the Company's history or other transactions, except as specifically set forth in this letter.

        Based on our review of the foregoing and subject to the assumptions and qualifications set forth in this letter, it is our opinion, as of the date of this letter, that:

3


        In addition to the qualifications set forth above, the opinions set forth in this letter are also subject to the following qualifications:

        The opinions expressed in this letter are furnished only with respect to the transactions contemplated by the Documents. The opinions expressed in this letter are limited to the matters set forth in this letter, and no other opinions shall be implied or inferred beyond the matters expressly stated.

        We hereby consent to the filing of this opinion as an exhibit to the Registration Statement and to the use of the name of our firm therein. In giving this consent, we do not admit that we are within the category of persons whose consent is required by Section 7 of the Securities Act of 1933.


 

 

Very truly yours,

 

 

SAUL EWING LLP

4




QuickLinks