XML 20 R1.htm IDEA: XBRL DOCUMENT v3.24.0.1
Document And Entity Information - USD ($)
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Feb. 21, 2024
Jun. 30, 2023
Document And Entity Information        
Document Type 10-K      
Document Annual Report true      
Document Transition Report false      
Document Period End Date Dec. 31, 2023      
Entity File Number 001-32834      
Entity Registrant Name United States Oil Fund, LP      
Entity Incorporation, State or Country Code DE      
Entity Tax Identification Number 20-2830691      
Entity Address, Address Line One 1850 Mt. Diablo Boulevard, Suite 640      
Entity Address, City or Town Walnut Creek      
Entity Address, State or Province CA      
Entity Address, Postal Zip Code 94596      
City Area Code 510      
Local Phone Number 522-9600      
Title of 12(b) Security Shares of United States Oil Fund, LP      
Trading Symbol USO      
Security Exchange Name NYSEArca      
Entity Well-known Seasoned Issuer No      
Entity Voluntary Filers No      
Entity Current Reporting Status Yes      
Entity Interactive Data Current Yes      
Entity Filer Category Large Accelerated Filer      
Entity Small Business false      
Entity Emerging Growth Company false      
Document Financial Statement Error Correction [Flag] false      
Entity Shell Company false      
Entity Public Float       $ 0
Entity Common Stock, Shares Outstanding     18,623,603  
Entity Central Index Key 0001327068      
Current Fiscal Year End Date --12-31      
Document Fiscal Year Focus 2023      
Document Fiscal Period Focus FY      
Amendment Flag false      
ICFR Auditor Attestation Flag true      
Auditor Name Cohen & Company, Ltd Spicer Jeffries LLP    
Auditor Firm ID 925 349    
Auditor Location Philadelphia, Pennsylvania Denver, Colorado