The form generator may assist in generating a completed Form 4797, but it may not calculate the gain or loss on the sale of business property for you. Calculating the gain or loss requires you to gather and report the relevant information, such as the selling price, adjusted basis, and depreciation recapture, if applicable. It's recommended to consult with a tax professional or use accounting software to accurately calculate the gain or loss on the sale of business property. The IRS provides instructions and worksheets in the Form 4797 instructions booklet to help individuals and businesses determine their gains or losses and report them correctly on Form 4797.