Deductions & credits

Does the net proceeds take into account what you originally paid for the property? How do you show if you had a loss?