v3.10.0.1
Document and Entity Information - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2018
Mar. 01, 2019
Jun. 30, 2018
Document And Entity Information [Abstract]      
Entity Registrant Name Flex Pharma, Inc.    
Entity Central Index Key 0001615219    
Current Fiscal Year End Date --12-31    
Entity Filer Category Non-accelerated Filer    
Entity Small Business true    
Entity Emerging Growth Company true    
Entity Ex Transition Period true    
Document Type 10-K    
Document Period End Date Dec. 31, 2018    
Document Fiscal Year Focus 2018    
Document Fiscal Period Focus FY    
Amendment Flag false    
Entity Common Stock, Shares Outstanding   18,069,476  
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Shell Company false    
Entity Current Reporting Status Yes    
Entity Public Float     $ 9.8