v2.4.0.6
Document and Entity Information (USD $)
12 Months Ended
Dec. 31, 2012
Feb. 28, 2013
Jun. 29, 2012
Document and Entity Information [Abstract]      
Entity Registrant Name Mastech Holdings, Inc.    
Entity Central Index Key 0001437226    
Document Type 10-K    
Amendment Flag false    
Document Period End Date Dec. 31, 2012    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2012    
Current Fiscal Year End Date --12-31    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Filer Category Smaller Reporting Company    
Entity Public Float     $ 6,213,000
Entity Common Stock, Shares Outstanding   3,342,670