RSA: Determining actual cost basis of long term gain with cost to cover tax method when granted
In 2019, 333 RSA shares from my public traded company vested @ $28.14, for a total market value of $9,370.62, which was recorded as income in 2019. 99 shares were sold by the company at time of vest to cover the $2,785.40 of income taxes. This left me with 234 shares ($6,584.76) in my stock account.
I sold the 234 shares in 2022. Do I use the $9,370.62 or the $6,584.76 as my cost basis? (Using the $6.584.76 feels like I am being double taxed on any gain for the $2,785.40 I already paid for taxes as that is a loss to me.) My 1099-B for 2022 shows cost basis as 0 since these are listed as long term-non covered.