Annual report pursuant to Section 13 and 15(d)


Cover - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2023
Mar. 29, 2024
Jun. 30, 2023
Cover [Abstract]      
Document Type 10-K    
Amendment Flag false    
Document Annual Report true    
Document Transition Report false    
Document Period End Date Dec. 31, 2023    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2023    
Current Fiscal Year End Date --12-31    
Entity File Number 001-36268    
Entity Registrant Name MyMD Pharmaceuticals, Inc.    
Entity Central Index Key 0001321834    
Entity Tax Identification Number 22-2983783    
Entity Incorporation, State or Country Code DE    
Entity Address, Address Line One 855 N. Wolfe Street    
Entity Address, Address Line Two Suite 601    
Entity Address, City or Town Baltimore    
Entity Address, State or Province MD    
Entity Address, Postal Zip Code 21205    
City Area Code (856)    
Local Phone Number 848-8698    
Title of 12(b) Security Shares of Common Stock, par value $0.001 per share    
Trading Symbol MYMD    
Security Exchange Name NASDAQ    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Interactive Data Current Yes    
Entity Filer Category Non-accelerated Filer    
Entity Small Business true    
Entity Emerging Growth Company false    
Entity Shell Company false    
Entity Public Float     $ 63
Entity Common Stock, Shares Outstanding   2,157,632  
Documents Incorporated by Reference [Text Block] None    
ICFR Auditor Attestation Flag false    
Document Financial Statement Error Correction [Flag] false    
Auditor Firm ID 536    
Auditor Name Morison Cogen LLP    
Auditor Location Blue Bell, Pennsylvania