A W-2 form reports the amount of taxes withheld from an employee's paycheck and is required by the IRS for filing federal and state taxes. It details wage and salary information, including federal and state tax withholdings, crucial for calculating tax obligations and potential refunds. Copies of the W-2 must be attached when filing tax returns, whether electronically or by mail.