Exhibit 5.1

[LETTERHEAD OF PAUL, WEISS, RIFKIND, WHARTON & GARRISON LLP]

May 16, 2022

TeraWulf Inc.
9 Federal Street

Easton, Maryland 21601

Ladies and Gentlemen:

We have acted as special counsel to TeraWulf Inc., a Delaware corporation (the “Company”), in connection with the Registration Statement on Form S-8 (the “Registration Statement”) of the Company, filed with the Securities and Exchange Commission (the “Commission”) pursuant to the Securities Act of 1933, as amended (the “Securities Act”), and the rules and regulations thereunder (the “Rules”). You have asked us to furnish our opinion as to the legality of the securities being registered under the Registration Statement. The Registration Statement relates to the registration under


Graphic

TeraWulf Inc.

2

the Securities Act of (i) 13,660,117 shares (the “Plan Shares”) of the Company’s common stock, par value $0.001 per share (the “Common Stock”), that are reserved for issuance under the TeraWulf Inc. 2021 Omnibus Incentive Plan (the “Plan”) and (ii) 1,000,000 shares of Common Stock that are reserved for issuance upon vesting of restricted stock units granted to Patrick Fleury, the Company’s Chief Financial Officer (the “Inducement Grant Shares”, and together with the Plan Shares, the “Shares”).

In connection with the furnishing of this opinion, we have examined originals, or copies certified or otherwise identified to our satisfaction, of the following documents (collectively, the “Documents”):

1.the Registration Statement;

2.the Plan and the forms of award agreements (collectively, the “Plan Agreements”) relating to awards granted under the Plan; and

3. the form of Restricted Stock Unit Award Agreement, between TeraWulf Inc. and Patrick Fleury, relating to the Inducement Grant Shares (the “Inducement Grant Agreement”).

In addition, we have examined (i) such corporate records of the Company that we have considered appropriate, including a copy of the certificate of incorporation, as amended, and by-laws, as amended, of the Company certified by the Company as in effect on the date of this letter, and copies of resolutions of the board of directors of the Company relating to the issuance of the Shares, and (ii) such other certificates, agreements and documents that we deemed relevant and necessary as a basis for the


Graphic

TeraWulf Inc.

3

opinions expressed below. We have also relied upon the factual matters contained in the representations and warranties of the Company made in the Documents and upon certificates of public officials and the officers of the Company.

In our examination of the documents referred to above, we have assumed, without independent investigation, the genuineness of all signatures, the legal capacity of all individuals who have executed any of the documents reviewed by us, the authenticity of all documents submitted to us as originals, the conformity to the originals of all documents submitted to us as certified, photostatic, reproduced or conformed copies of valid existing agreements or other documents, the authenticity of all the latter documents and that the statements regarding matters of fact in the certificates, records, agreements, instruments and documents that we have examined are accurate and complete.

Based upon the above, and subject to the stated assumptions, exceptions and qualifications, we are of the opinion that the Shares have been duly authorized by all necessary corporate action on the part of the Company and, when issued and delivered in accordance with the terms of the Plan and any applicable Plan Agreement, or the Inducement Grant Agreement, as applicable, the Shares will be validly issued, fully paid and non-assessable.

The opinion expressed above is limited to the Delaware General Corporation Law. Our opinion is rendered only with respect to the laws, and the rules, regulations and orders under those laws, that are currently in effect.


Graphic

TeraWulf Inc.

4

We hereby consent to use of this opinion as an exhibit to the Registration Statement. In giving this consent, we do not thereby admit that we come within the category of persons whose consent is required by the Securities Act or the Rules.

Very truly yours,

/s/ Paul, Weiss, Rifkind, Wharton & Garrison LLP

PAUL, WEISS, RIFKIND, WHARTON & GARRISON LLP