Deductions & credits

So if I only need to report it if it is a gain, I wouldn’t have to report it if I sell it for less than I purchased it for right? Just want to clarify