EX-5.1 3 a2065360zex-5_1.htm EXHIBIT 5.1 Prepared by MERRILL CORPORATION
QuickLinks -- Click here to rapidly navigate through this document


Exhibit 5.1


[LETTERHEAD OF BALLARD SPAHR ANDREWS & INGERSOLL, LLP]

December 5, 2001

Apex Mortgage Capital, Inc.
865 South Figueroa Street
Suite 1800
Los Angeles, California 90017

Re:   Apex Mortgage Capital, Inc., a Maryland corporation (the "Company")—a Registration Statement on Form S-2 pertaining to Five Hundred Seventy-Five Thousand (575,000) shares (the "Shares") of common stock, par value one cent ($.01) per share (the "Common Stock") of the Company

Ladies and Gentlemen:

    We have acted as special Maryland corporate counsel to the Company in connection with the registration of the Shares under the Securities Act of 1933, as amended (the "Act"), on Form S-2, filed or to be filed with the Securities and Exchange Commission (the "Commission") on or about December 5, 2001, and any amendments thereto, if any are to be filed with the Commission subsequent to the date hereof. You have requested our opinion with respect to the matters set forth below.

    In our capacity as special Maryland corporate counsel to the Company and for the purposes of this opinion, we have examined originals, or copies certified or otherwise identified to our satisfaction, of the following documents (collectively, the "Documents"):

    (i)
    the corporate charter of the Company (the "Charter"), represented by Articles of Incorporation filed with the State Department of Assessments and Taxation of Maryland (the "Department") on September 15, 1997, Articles of Amendment and Restatement filed with the Department on November 25, 1997, Articles Supplementary filed with the Department on July 23, 1999 and Articles of Revival filed with the Department on March 22, 2000;

    (ii)
    the Bylaws of the Company, as adopted on September 15, 1997 (the "Original Bylaws"), and the Amended and Restated Bylaws of the Company, as adopted on November 15, 2001 (the "Amended Bylaws" and together with the Original Bylaws, the "Bylaws");

    (iii)
    the Written Organizational Action of the Board of Directors of the Company, dated as of September 15, 1997 (the "Organizational Minutes");

    (iv)
    resolutions adopted by the Board of Directors of the Company on November 15, 2001, which, among other things, authorized the issuance of the Shares (the "Directors' Resolutions");

    (v)
    a certificate of David S. DeVito, the Interim Chief Financial Officer of the Company and Philip K. Holl, the Assistant Secretary of the Company, of even date herewith (the "Officers' Certificate"), to the effect that, among other things, the Charter, the Bylaws, the Organizational Minutes and the Directors' Resolutions are true, correct and complete, and that the Charter, the Amended Bylaws, the Organizational Minutes and the Directors' Resolutions have not been rescinded or modified and are in full force and effect on the date of the Officers' Certificate;

    (vi)
    the Registration Statement on Form S-2 filed or to be filed with the Commission pursuant to Rule 462(b) of the Act (the "Rule 462(b) Registration Statement"), and the Registration Statement on Form S-2, as amended (Registration No. 333-73488), filed by the Company with the Commission on November 15, 2001 and the related form of prospectus included therein

      (the "Registration Statement" and together with the Rule 462(b) Registration Statement, the "Registration Statements");

    (vii)
    a status certificate of the Department, dated November 27, 2001, to the effect that the Company is duly incorporated and existing under the laws of the State of Maryland; and

    (viii)
    such other laws, records, documents, certificates, opinions and instruments as we have deemed necessary to render this opinion, subject to the limitations, assumptions and qualifications noted below.

    In reaching the opinion set forth below, we have assumed the following:

    (a)
    each person executing any of the Documents on behalf of a party (other than the Company) is duly authorized to do so;

    (b)
    each natural person executing any of the Documents is legally competent to do so;

    (c)
    any of the Documents submitted to us as originals are authentic; the form and content of any Documents submitted to us as unexecuted drafts do not differ in any respect relevant to this opinion from the form and content of such documents as executed and delivered; any of the Documents submitted to us as certified or photostatic copies conform to the original documents; all signatures on all of the Documents are genuine; all public records reviewed or relied upon by us or on our behalf are true and complete; all statements and information contained in the Documents are true and complete; there has been no modification of, or amendment to, any of the Documents, and there has been no waiver of any provision of any of the Documents by action or omission of the parties or otherwise;

    (d)
    the final number of Shares to be offered and sold by the Company pursuant to the Rule 462(b) Registration Statement and the final price to be received by the Company for the Shares will have been determined by the Pricing Committee (as defined in the Directors' Resolutions) in accordance with the Directors' Resolutions prior to the issuance of the Shares;

    (e)
    none of the Shares will be issued or transferred in violation of the provisions of Article V, Section 2 of the Charter relating to restrictions on ownership and transfer of stock; and

    (f)
    none of the Shares will be issued and sold to an Interested Stockholder of the Company or an Affiliate thereof, all as defined in Subtitle 6 of Title 3 of the Maryland General Corporation Law (the "MGCL"), in violation of Section 3-602 of the MGCL.

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

    1)
    The Company is a corporation duly incorporated and validly existing as a corporation in good standing under the laws of the State of Maryland.

    2)
    The Shares have been duly authorized for issuance by the Company, and the Shares, when issued and delivered in exchange for payment of the consideration therefor, will be validly issued, fully paid and non-assessable.

    The foregoing opinion is limited to the substantive laws of the State of Maryland, and we do not express any opinion herein concerning any other law. We express no opinion as to the applicability or effect of any federal or state securities laws, including the securities laws of the State of Maryland, or as to federal or state laws regarding fraudulent transfers. To the extent that any matter as to which our opinion is expressed herein would be governed by any jurisdiction other than the State of Maryland, we do not express any opinion on such matter.

    This opinion letter is issued as of the date hereof and is necessarily limited to laws now in effect and facts and circumstances presently existing and brought to our attention. We assume no obligation

2


to supplement this opinion letter if any applicable laws change after the date hereof, or if we become aware of any facts or circumstances that now exist or that occur or arise in the future and may change the opinions expressed herein after the date hereof.

    This opinion is being furnished to you solely for submission to the Commission as an exhibit to the Rule 462(b) Registration Statement and, accordingly, may not be relied upon by, quoted in any manner to, or delivered to any other person or entity without, in each instance, our prior written consent.

    We consent to your filing this opinion as an exhibit to the Rule 462(b) Registration Statement and further consent to the filing of this opinion as an exhibit to the applications to securities commissioners for the various states of the United States for registration of the Shares. We also consent to the identification of our firm as Maryland counsel to the Company in the section of the Registration Statement entitled "Legal Matters." 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 Act.

    Very truly yours,
    /s/ Ballard Spahr Andrews & Ingersoll, LLP

3




QuickLinks

[LETTERHEAD OF BALLARD SPAHR ANDREWS & INGERSOLL, LLP]