You may be able to exclude some of the gain on the sale of your home used for business purposes if you meet the ownership and use tests, and if the part of your property used for business is within your home (in other words, not a separate part of your property).
Per the IRS Publication 587 Business Use of Your Home, page 14:
Sale or Exchange of Your Home
If you sell or exchange your home, you may be able to exclude up to $250,000 ($500,000 for certain married persons filing a joint return) of the gain on the sale or exchange. In most cases, you must meet the ownership and use tests. However, even if you meet the ownership and use tests, your home sale is not eligible for the exclusion if either of the following is true.
Ownership and use tests. The ownership and use tests generally require that during the 5-year period ending on the date of the sale:
Gain on Sale
If you use property partly as a home and partly for business, the treatment of any gain on the sale varies depending on whether the part of the property used for business is part of your home or separate from it.
Part of Home Used for Business
If the part of your property used for business is within your home, such as a room used as a home office for a business or rooms used to provide daycare, you do not need to allocate gain on the sale of the property between the business part of the property and the part used as a home. In addition, you do not need to report the sale of the business part on Form 4797, Sales of Business Property. This is true whether or not you were entitled to claim any depreciation. However, you cannot exclude the part of any gain equal to any depreciation allowed or allowable after May 6, 1997. See Depreciation, later.
Note: if you used a separate part of your property for business, see Separate Part of Property Used for Business in IRS Publication 587.
To enter the sale of your home used in your business in the TaxAct Program: