Exhibit 5.1

[Letterhead of Wachtell, Lipton, Rosen & Katz]
 
May 11, 2026
 
Coursera, Inc.
2440 West El Camino Real, Suite 500
Mountain View, California 94040

RE:  Registration Statement on Form S-8
 
Ladies and Gentlemen:
 
We have acted as special counsel to Coursera, Inc., a Delaware public benefit corporation (the Company), in connection with the filing of a Registration Statement on Form S-8 (the Registration Statement,” which term does not include any other document or agreement whether or not specifically referred to therein or attached as an exhibit or schedule thereto) filed with the Securities and Exchange Commission (the “Commission”), under the Securities Act of 1933, as amended (the “Securities Act”), relating to the issuance by the Company of (i) 15,908,659 shares of common stock, par value $0.00001 per share, of the Company (the Shares), which may be issuable upon the vesting or settlement of certain restricted stock unit awards and performance-based restricted stock unit awards granted under the Udemy, Inc. 2021 Equity Incentive Plan, as amended (the “Udemy EIP”), which were assumed by Coursera and converted into equity awards of the Company in connection with the completion of certain transactions contemplated by the Agreement and Plan of Merger, dated as of December 17, 2025 (the Merger Agreement), by and among the Company, Chess Merger Sub, Inc., a direct wholly owned subsidiary of the Company (“Merger Sub”), and Udemy, Inc. (“Udemy”) and (ii) 4,481,863 Shares, which may be issuable pursuant to equity awards to be granted after the completion of certain transactions contemplated by the Merger Agreement to eligible individuals (which shall exclude individuals who were employed by Coursera and its subsidiaries prior to the Effective Time) from the share reserve remaining, as of the consummation of such transactions contemplated by the Merger Agreement and as adjusted to reflect the transactions contemplated under the Merger Agreement, under the Udemy EIP assumed by Coursera in connection with the transactions contemplated under the Merger Agreement.
 
In rendering this opinion, we have examined the Registration Statement, the Udemy EIP, the Merger Agreement and such corporate records, other documents and matters of law as we have deemed necessary or appropriate, including the Amended and Restated Certificate of Incorporation and Amended and Restated Bylaws of the Company, in each case, as amended and as currently in effect.  In rendering this opinion, we have relied, with your consent, upon oral and written representations of officers of the Company and certificates of officers of the Company and public officials with respect to the accuracy of the factual matters addressed in such representations and certificates.  In addition, in rendering this opinion, we have assumed without verification the genuineness of all signatures, the authenticity of all documents submitted to us as originals, the conformity to original documents of all documents submitted to us as duplicates or certified or conformed copies, the authenticity of the originals of such latter documents, and the legal capacity of all individuals executing any of the foregoing documents.
 

We have also assumed that the appropriate action will be taken, prior to the offer and sale of the Shares in accordance with the Udemy EIP, to register and qualify the Shares for sale under all applicable state securities or “blue sky” laws.  We have further assumed that there will be no material changes to the documents we have examined and that, at all times prior to the issuance of the Shares, the Company will maintain a sufficient number of authorized but unissued shares of common stock, par value $0.00001 per share, available for such issuance.
 
Based on and subject to the foregoing, and subject to the qualifications, assumptions and limitations stated herein, we are of the opinion that the Shares have been duly authorized for issuance and, when the Shares are issued in accordance with the terms and conditions of the Udemy EIP, the Shares will be validly issued, fully paid and nonassessable.
 
We are members of the Bar of the State of New York, and we express no opinion as to the laws of any jurisdiction other than the General Corporation Law of the State of Delaware (including the statutory provisions, all applicable provisions of the Delaware Constitution and reported judicial decisions interpreting the foregoing).
 
This opinion letter speaks only as of its date, and we undertake no (and hereby disclaim any) obligation to update this opinion.  This opinion is being furnished in accordance with the requirements of Item 601(b)(5) of Regulation S-K under the Securities Act, and no opinion is expressed herein as to any matter pertaining to the contents of the Registration Statement, other than as expressly stated herein with respect to the issuance of the Shares.
 
We hereby consent to the filing of this opinion as Exhibit 5.1 to the Registration Statement.  In giving this consent, we do not thereby admit that we are within the category of persons whose consent is required by Section 7 of the Securities Act or the rules and regulations of the Commission thereunder.
 

Very truly yours,
   

/s/ Wachtell, Lipton, Rosen & Katz