EX-5.1 3 a2237179zex-5_1.htm EX-5.1
QuickLinks -- Click here to rapidly navigate through this document

EXHIBIT 5.1

November 30, 2018

Legacy Housing Corporation
1600 Airport Freeway, #100
Bedford, Texas 76002

Ladies and Gentlemen:

We are acting as counsel to Legacy Housing Corporation, a Delaware corporation (the "Company"), in connection with (a) the Registration Statement on Form S-1 (No. 333-228288), originally filed on November 9, 2018 (as it may be amended, the "Registration Statement"), under the Securities Act of 1933, as amended (the "Act"), covering 3,500,000 shares (the "Shares") of the Company's common stock, par value $0.001 per share (the "Common Stock"), plus an option to purchase from the Company up to 525,000 additional shares of Common Stock to cover over-allotments, if any, and (b) the Underwriting Agreement between the Company and B. Riley FBR, Inc., as Representative of the several Underwriters, relating to the Shares (the "Underwriting Agreement").

We have examined the originals, or certified, conformed or reproduction copies, of all such records, agreements, instruments and documents as we have deemed relevant or necessary as the basis for the opinion hereinafter expressed. In all such examinations, we have assumed the genuineness of all signatures on originals or certified copies and the conformity to original or certified copies of all copies submitted to us as conformed or reproduction copies. As to various questions of fact relevant to such opinion, we have relied upon, and assumed the accuracy of, certificates and oral or written statements and other information of or from public officials, officers or representatives of the Company, and others.

Based upon the foregoing, and the laws of the State of Delaware, we are of the opinion that the Shares, when issued, delivered and paid for in accordance with the terms of the Underwriting Agreement, will be legally issued, fully paid, non-assessable and binding obligations of the Company under the laws of the State of Delaware.

We hereby consent to the filing of this opinion as an exhibit to the Registration Statement and to the reference to this firm under the caption "Legal Matters" in the prospectus forming a part of the Registration Statement. In giving this consent, we do not hereby admit that we are in the category of persons whose consent is required under Section 7 of the Act.

|  | Very truly yours,
|  | /s/ OLSHAN FROME WOLOSKY LLP
|  | OLSHAN FROME WOLOSKY LLP

QuickLinks

EXHIBIT 5.1