Clearly, whether there are capital gains will be dependent upon the selling price and the basis.
With respect to the latter, that figure will depend upon the basis the trust took which, in turn, will depend upon the exact language in the trust document (and, obviously, the type of trust).