XML 17 R1.htm IDEA: XBRL DOCUMENT v3.25.0.1
Cover Page - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2024
Mar. 01, 2025
Jun. 30, 2024
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, 2024    
Document Fiscal Year Focus 2024    
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 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    
Document Financial Statement Error Correction [Flag] false    
Entity Shell Company false    
Entity Public Float     $ 24,874,000
Entity Common Stock, Shares Outstanding   11,743,292  
ICFR Auditor Attestation Flag false    
Auditor Name UHY LLP    
Auditor Firm ID 1195    
Auditor Location Farmington Hills, Michigan    
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