I bought a backhoe in 2017 for $23,500 and i had to sell it and only got $15,500. how do i report the $8000 loss?

i purchased the backhoe in May or June of 2017 and sold it in Aug of 2018. i did the depreciation thing for my 2017 taxes but now just need to show i lost $8000 and how to put that into my taxes and get the backhoe off of my records/taxes.