1031 exchange for depreciation on new and old property

How to calculate the new depreciation value for the new property? For example, I bought a property at $100K, depreciated $50K, sold it for $200K, bought another property at $250K as 1031 exchange. Will the new depreciation value be the remaining depreciation value of $50K from the old property, plus the $50K I just paid out of pocket, total $100K? Or should I add the profit $100K from selling the old property into it, the total new depreciation value is $200K? Thank you very much!