Trinity Church, the historic Episcopal congregation in Copley Square known for its charitable work, has purchased a $3.6 million condo on Beacon Hill as a home for its rector, the Rev. Samuel T. Lloyd III.

Peter Lawrence, Trinity’s senior warden, cast the transaction as a savvy investment that would have no meaningful effect on the church’s operating budget because a large chunk of the purchase price would come from the church’s $30 million endowment.