Like-kind exchanges - boot

In like-kind exchanges, a gain can only be recognized to the extent of boot received. So if you have a realized gain of $3,000 and boot received of $2,500, a gain of only $2,500 is recognized, and the basis of the property received is reduced by $500. Simple enough. Now what if you have a realized gain of $3,000, boot received of $2,500, and boot paid of $1,000? Can you recognize $2,500, since that is boot RECEIVED, or do you only recognize $1,500, which is NET boot received? I have two examples in front of me, and one of them nets the boot and the other doesn't! Is there a certain rule depending on what the boot is? If the boot received and boot paid are the same do you net them? Thanks for any input.