XML 11 R1.htm IDEA: XBRL DOCUMENT v3.23.3
Cover Page - shares
9 Months Ended
Sep. 30, 2023
Oct. 31, 2023
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Transition Report false  
Entity Interactive Data Current Yes  
Amendment Flag false  
Document Period End Date Sep. 30, 2023  
Document Fiscal Year Focus 2023  
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 NYSEAMER  
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,599,138
Entity File Number 001-34099  
Entity Incorporation, State or Country Code PA  
Entity Address, Address Line One 1305 Cherrington Parkway  
Entity Address, City or Town Moon Township  
Entity Address, Postal Zip Code 15108  
Entity Tax Identification Number 26-2753540  
City Area Code 412  
Local Phone Number 787-2100  
Entity Address, Address Line Two Building 210  
Entity Address, Address Line Three Suite 400