XML 16 R1.htm IDEA: XBRL DOCUMENT v3.20.4
Cover Page - USD ($)
12 Months Ended
Dec. 31, 2020
Mar. 01, 2021
Jun. 30, 2020
Cover [Abstract]      
Document Type 10-K    
Document Annual Report true    
Document Transition Report false    
Entity Interactive Data Current Yes    
Amendment Flag false    
Document Period End Date Dec. 31, 2020    
Document Fiscal Year Focus 2020    
Document Fiscal Period Focus FY    
Entity Registrant Name Mastech Digital, Inc.    
Entity Central Index Key 0001437226    
Current Fiscal Year End Date --12-31    
Entity Current Reporting Status Yes    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Filer Category Accelerated Filer    
Title of 12(b) Security Common Stock    
Trading Symbol MHH    
Security Exchange Name NYSE    
Entity Address, State or Province PA    
Entity Small Business true    
Entity Emerging Growth Company false    
Entity Shell Company false    
Entity Public Float     $ 81,727,000
Entity Common Stock, Shares Outstanding   11,417,953  
ICFR Auditor Attestation Flag true