If you haven't fired it, and it is in new condition like you bought it, a good dealer would give you full purchase price credit toward a new gun from him.
If you've fired it, expect at least a $50-100 hit
If you trade UP, your dealer may eat the $50, but not give you a discount on the new gun.