Get your taxes done using TurboTax

And the Medicare does not get subtracted from box 5 to determine the taxable amount.  But you can deduct the Medicare as a Deduction on Schedule A if you itemize.  It automatically flows over to Schedule A.