v3.19.3
Cover Page - shares
9 Months Ended
Sep. 30, 2019
Oct. 31, 2019
Cover [Abstract]    
Document Type 10-Q  
Entity Interactive Data Current Yes  
Amendment Flag false  
Document Period End Date Sep. 30, 2019  
Document Fiscal Year Focus 2019  
Document Fiscal Period Focus Q3  
Entity Registrant Name Mastech Digital, Inc.  
Entity Central Index Key 0001437226  
Current Fiscal Year End Date --12-31  
Entity Current Reporting Status Yes  
Entity Filer Category Non-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 Common Stock, Shares Outstanding   11,033,165