Gambling losses (referred to as wagering losses) are deductible only to the extent of gambling winnings. However, the deduction for these losses is not one of the enumerated deductions that can be claimed directly from gross income; they can only be deducted from adjusted gross income, meaning you must itemize to deduct them.
Generally, the amount paid for property. You need to know your basis to figure gain or loss on a sale.