In the U.S., you can use the following link to get an estimate on your old phone: Trade in with Apple GiveBack - Apple
and the following to get the price of a new phone: iPhone - Apple
Cellular carriers also have trade programs that may pay more or less. As with all such programs you may do better financially by selling the old one yourself.