Equity and Capital - Schedule of Dividends and Distributions (Details) - USD ($) $ / shares in Units, $ in Thousands | | 12 Months Ended | 24 Months Ended |
May 17, 2021 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2023 |
Dividends Payable [Line Items] | | | | | |
Preferred stock, liquidation preference per share (in dollars per share) | | $ 25 | $ 25 | | $ 25 |
Redemption price (in dollars per share) | | 25 | | | 25 |
Series C Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | $ 3,333 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.65625 | | | |
Preferred stock, liquidation preference per share (in dollars per share) | $ 25.211632 | | | | |
Redemption price (in dollars per share) | $ 25 | | | | |
Redemption Premium | $ 201,300 | | | | |
Gain on redemption | 18,000 | | | | |
Increase in net income available to common stockholders from gain on redemption | $ 219,300 | | | | |
Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 10,500 | $ 10,500 | 10,500 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.31250 | | | |
Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 12,284 | 12,284 | 12,284 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.46250 | | | |
Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 17,940 | 17,940 | 17,940 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.30000 | | | |
Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | $ 1,472,448 | $ 1,403,344 | $ 1,314,736 | |
Common stock dividend per share amount (in dollars per share/unit) | | $ 4.880 | $ 4.880 | $ 4.640 | 4.88000 |
February 25, 2021 | Series C Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | $ 3,333 | |
February 25, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
February 25, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
February 25, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
February 25, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 326,965 | |
May 10, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
May 10, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
May 10, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
May 10, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 328,279 | |
November 18, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
November 18, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
November 18, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
November 18, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 329,772 | |
August 11, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
August 11, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
August 11, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
August 11, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 329,720 | |
March 3, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | $ 2,625 | | |
March 3, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
March 3, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
March 3, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 348,025 | | |
May 24, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
May 24, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
May 24, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
May 24, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 348,077 | | |
August 17, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
August 17, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
August 17, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
August 17, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 351,410 | | |
November 29, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
November 29, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
November 29, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
November 29, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | $ 355,832 | | |
February 22, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 2,625 | | | |
February 22, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
February 22, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
February 22, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | 356,214 | | | |
May 24, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
May 24, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
May 24, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
May 24, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | 365,937 | | | |
August 8, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
August 8, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
August 8, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
August 8, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | 370,278 | | | |
November 28, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
November 28, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
November 28, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
November 28, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | $ 380,019 | | | |
Digital Realty Trust, L.P. | | | | | |
Dividends Payable [Line Items] | | | | | |
Preferred stock, liquidation preference per share (in dollars per share) | | $ 25 | $ 25 | | $ 25 |
Digital Realty Trust, L.P. | Series C Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,333 | |
Preferred stock, liquidation preference per share (in dollars per share) | $ 25.211632 | | | | |
Redemption price (in dollars per share) | $ 25 | | | | |
Redemption Premium | $ 201,300 | | | | |
Gain on redemption | 18,000 | | | | |
Increase in net income available to common stockholders from gain on redemption | $ 219,300 | | | | |
Digital Realty Trust, L.P. | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 10,500 | $ 10,500 | 10,500 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.31250 | | | |
Digital Realty Trust, L.P. | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 12,284 | 12,284 | 12,284 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.46250 | | | |
Digital Realty Trust, L.P. | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 17,940 | 17,940 | 17,940 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 1.30000 | | | |
Digital Realty Trust, L.P. | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 1,504,377 | | | |
Dividends/Distributions, common units | | | $ 1,434,520 | $ 1,347,507 | |
Preferred stock dividend per share amount (in dollars per share/unit) | | $ 4.88000 | $ 4.88000 | | |
Common stock dividend per share amount (in dollars per share/unit) | | $ 4.880 | $ 4.880 | $ 4.640 | |
Digital Realty Trust, L.P. | February 25, 2021 | Series C Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | $ 3,333 | |
Digital Realty Trust, L.P. | February 25, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
Digital Realty Trust, L.P. | February 25, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
Digital Realty Trust, L.P. | February 25, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
Digital Realty Trust, L.P. | February 25, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 336,041 | |
Digital Realty Trust, L.P. | May 10, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
Digital Realty Trust, L.P. | May 10, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
Digital Realty Trust, L.P. | May 10, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
Digital Realty Trust, L.P. | May 10, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 336,543 | |
Digital Realty Trust, L.P. | August 10, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
Digital Realty Trust, L.P. | August 10, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
Digital Realty Trust, L.P. | August 10, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
Digital Realty Trust, L.P. | August 10, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | 337,447 | |
Digital Realty Trust, L.P. | November 17, 2021 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 2,625 | |
Digital Realty Trust, L.P. | November 17, 2021 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 3,071 | |
Digital Realty Trust, L.P. | November 17, 2021 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | | 4,485 | |
Digital Realty Trust, L.P. | November 17, 2021 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | | $ 337,476 | |
Digital Realty Trust, L.P. | March 3, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | $ 2,625 | | |
Digital Realty Trust, L.P. | March 3, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
Digital Realty Trust, L.P. | March 3, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
Digital Realty Trust, L.P. | March 3, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 355,812 | | |
Digital Realty Trust, L.P. | May 24, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
Digital Realty Trust, L.P. | May 24, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
Digital Realty Trust, L.P. | May 24, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
Digital Realty Trust, L.P. | May 24, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 355,885 | | |
Digital Realty Trust, L.P. | August 17, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
Digital Realty Trust, L.P. | August 17, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
Digital Realty Trust, L.P. | August 17, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
Digital Realty Trust, L.P. | August 17, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | 359,207 | | |
Digital Realty Trust, L.P. | November 29, 2022 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 2,625 | | |
Digital Realty Trust, L.P. | November 29, 2022 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 3,071 | | |
Digital Realty Trust, L.P. | November 29, 2022 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | | 4,485 | | |
Digital Realty Trust, L.P. | November 29, 2022 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | | $ 363,616 | | |
Digital Realty Trust, L.P. | February 22, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | $ 2,625 | | | |
Digital Realty Trust, L.P. | February 22, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
Digital Realty Trust, L.P. | February 22, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
Digital Realty Trust, L.P. | February 22, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 364,204 | | | |
Digital Realty Trust, L.P. | May 24, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
Digital Realty Trust, L.P. | May 24, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
Digital Realty Trust, L.P. | May 24, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
Digital Realty Trust, L.P. | May 24, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 373,833 | | | |
Digital Realty Trust, L.P. | August 8, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
Digital Realty Trust, L.P. | August 8, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
Digital Realty Trust, L.P. | August 8, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
Digital Realty Trust, L.P. | August 8, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 378,352 | | | |
Digital Realty Trust, L.P. | November 28, 2023 | Series J Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 2,625 | | | |
Digital Realty Trust, L.P. | November 28, 2023 | Series K Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 3,071 | | | |
Digital Realty Trust, L.P. | November 28, 2023 | Series L Preferred Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, preferred units | | 4,485 | | | |
Digital Realty Trust, L.P. | November 28, 2023 | Common Units | | | | | |
Dividends Payable [Line Items] | | | | | |
Dividends/Distributions, common units | | $ 387,988 | | | |