<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:55a3d2ff-83e4-4a27-9cc6-9bd3f7603607,g:96eb52b8-f427-45a2-a9ec-ab70324dc427-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdesituacinfinancieraconsolidadosal31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Estadosdesituacinfinancieraconsolidadosal31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosdesituacinfinancieraconsolidadosal31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_7e1ec5c4-cd02-4874-a0e8-27deafdc0b69" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_dd83c120-fb46-43c7-a41a-e1baa696e7bc" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_EquityAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_7e1ec5c4-cd02-4874-a0e8-27deafdc0b69" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_dd83c120-fb46-43c7-a41a-e1baa696e7bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_9d5aaca3-62be-4d03-b4ff-bff252957fd3" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_7e1ec5c4-cd02-4874-a0e8-27deafdc0b69" xlink:to="loc_ifrs-full_NoncontrollingInterests_9d5aaca3-62be-4d03-b4ff-bff252957fd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_9c202985-9f91-44ca-9ea8-791eeb385b9e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_67978244-9cef-4102-8c92-2b56efb4c6a3" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_9c202985-9f91-44ca-9ea8-791eeb385b9e" xlink:to="loc_ifrs-full_NoncurrentAssets_67978244-9cef-4102-8c92-2b56efb4c6a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_a0cab863-e8ca-4c61-b723-ecb3b2f9bf10" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_9c202985-9f91-44ca-9ea8-791eeb385b9e" xlink:to="loc_ifrs-full_CurrentAssets_a0cab863-e8ca-4c61-b723-ecb3b2f9bf10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_17a8f23b-8723-4bfc-b1e4-6cf691b1750d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_c6013d7d-7b74-4eb1-a36a-bb99d16d4a21" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Equity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_17a8f23b-8723-4bfc-b1e4-6cf691b1750d" xlink:to="loc_ifrs-full_Equity_c6013d7d-7b74-4eb1-a36a-bb99d16d4a21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_fcd54200-ce83-4bde-a1d9-c634aa02f0f4" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_17a8f23b-8723-4bfc-b1e4-6cf691b1750d" xlink:to="loc_ifrs-full_NoncurrentLiabilities_fcd54200-ce83-4bde-a1d9-c634aa02f0f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_9c5867ca-1051-464e-a1fe-5a13723bdb40" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_17a8f23b-8723-4bfc-b1e4-6cf691b1750d" xlink:to="loc_ifrs-full_CurrentLiabilities_9c5867ca-1051-464e-a1fe-5a13723bdb40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_4b0b457b-a923-4f62-afea-3e0918ecac42" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Inventories"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_ifrs-full_Inventories_4b0b457b-a923-4f62-afea-3e0918ecac42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_ca0fac41-8d4d-4729-8640-acb5806cfe96" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_CuentasPorCobrarYOtrosActivosCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_ca0fac41-8d4d-4729-8640-acb5806cfe96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_1dfb8c82-81ba-409a-ab93-ec518eb1ce0f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentTaxAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_1dfb8c82-81ba-409a-ab93-ec518eb1ce0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_1efe2df6-6d5e-4435-8c68-1e9a45cbccec" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentFinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_ifrs-full_CurrentFinancialAssets_1efe2df6-6d5e-4435-8c68-1e9a45cbccec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_52e644bc-c042-4509-9e1f-6f31393f9911" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_ifrs-full_CashAndCashEquivalents_52e644bc-c042-4509-9e1f-6f31393f9911" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_5495a591-e41d-40db-b31a-dcd8ef77a896" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_7e541e65-146d-4be8-87d6-177541c10e42" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_5495a591-e41d-40db-b31a-dcd8ef77a896" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_5ab2cc0e-7ff8-4b00-beb6-6b9145a48fe4" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentFinancialLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_5ab2cc0e-7ff8-4b00-beb6-6b9145a48fe4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_2d7d1fc3-b31f-4b9f-af65-eb6331b09f34" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_CuentasAPagarYOtrosPasivosNoCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_2d7d1fc3-b31f-4b9f-af65-eb6331b09f34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_d3fdea24-5df0-42d6-8722-474ef9429cf1" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_DeferredTaxLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_d3fdea24-5df0-42d6-8722-474ef9429cf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_38f96e0d-0f3c-474c-9c90-a229de0a9123" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentProvisions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:to="loc_ifrs-full_NoncurrentProvisions_38f96e0d-0f3c-474c-9c90-a229de0a9123" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_fadd7774-3303-4546-b6fd-d5ae28376731" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentLeaseLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_79745742-ed37-4641-a0a4-bdc9ce7b0b02" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_fadd7774-3303-4546-b6fd-d5ae28376731" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_6443ec9b-2c66-419c-847a-093675779780" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_6443ec9b-2c66-419c-847a-093675779780" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_1c5a516e-a819-40cc-aea2-5533f3e232fb" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_Goodwill_1c5a516e-a819-40cc-aea2-5533f3e232fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_58a1c413-4574-4152-a102-bc2a8c05ec5d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_PropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_58a1c413-4574-4152-a102-bc2a8c05ec5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_c13ba68b-4171-448a-becf-fd56bce43e93" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_c13ba68b-4171-448a-becf-fd56bce43e93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_971a23a0-f2c8-445c-8cc8-77ca8d36dab5" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ActivosFinancierosYOtrosActivosNoCorrientes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_971a23a0-f2c8-445c-8cc8-77ca8d36dab5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_893ec7b1-3791-4887-b3eb-709c1a8152ab" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_DeferredTaxAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_DeferredTaxAssets_893ec7b1-3791-4887-b3eb-709c1a8152ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_43e10c22-1903-4206-b1ca-5553c54e7554" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_RightofuseAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_7fd2862c-fc6f-43ec-81d5-0692b97051ce" xlink:to="loc_ifrs-full_RightofuseAssets_43e10c22-1903-4206-b1ca-5553c54e7554" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_aed2ceba-9846-4fac-89eb-360fcaeb2189" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentFinancialLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_aed2ceba-9846-4fac-89eb-360fcaeb2189" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_c52b46dc-d84a-498e-b203-ea6b43590066" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_CuentasAPagarYOtrosPasivosCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_c52b46dc-d84a-498e-b203-ea6b43590066" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_f14d79f3-1945-4815-88c8-50a611037b1b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_f14d79f3-1945-4815-88c8-50a611037b1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_63742115-5afe-47f0-aaca-f0ab1a771d78" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentProvisions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_ifrs-full_CurrentProvisions_63742115-5afe-47f0-aaca-f0ab1a771d78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_5f6d1379-d33e-4fa3-9992-34ac0f447350" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_5f6d1379-d33e-4fa3-9992-34ac0f447350" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_03773dc9-dc52-4b78-a24e-c30b4ac2adde" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentLeaseLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_39d93fa2-5903-40b6-ba41-5488fa1a6490" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_03773dc9-dc52-4b78-a24e-c30b4ac2adde" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_c0f9f062-f0c2-47cf-a2e7-30cc33a1521f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_5a3cb4d6-ca23-485d-968d-1871661026a5" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_c0f9f062-f0c2-47cf-a2e7-30cc33a1521f" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_5a3cb4d6-ca23-485d-968d-1871661026a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_a9ee30b9-7cfd-4b7a-a045-5dae22d67b1d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_c0f9f062-f0c2-47cf-a2e7-30cc33a1521f" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_a9ee30b9-7cfd-4b7a-a045-5dae22d67b1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_c7826f70-ae6e-4004-852a-0bd20b5b5b56" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_28479522-b16c-4451-a70a-42abd3c88505" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_FinanceIncome"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_c7826f70-ae6e-4004-852a-0bd20b5b5b56" xlink:to="loc_ifrs-full_FinanceIncome_28479522-b16c-4451-a70a-42abd3c88505" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_12dfd091-b2ca-40af-8a50-6d099d9fcdd7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NetForeignExchangeGain"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_c7826f70-ae6e-4004-852a-0bd20b5b5b56" xlink:to="loc_ifrs-full_NetForeignExchangeGain_12dfd091-b2ca-40af-8a50-6d099d9fcdd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_0ce924a4-2834-48f9-849f-bdc99539b264" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_FinanceCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_c7826f70-ae6e-4004-852a-0bd20b5b5b56" xlink:to="loc_ifrs-full_FinanceCosts_0ce924a4-2834-48f9-849f-bdc99539b264" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_7cee6711-0b53-4ae6-ae3a-217ddf3c317f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NetForeignExchangeLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_c7826f70-ae6e-4004-852a-0bd20b5b5b56" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_7cee6711-0b53-4ae6-ae3a-217ddf3c317f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_d24774e7-c3c9-4663-91ef-741e40424678" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_1f1ad6ed-86ef-4bf1-a336-29144e10d64d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_d24774e7-c3c9-4663-91ef-741e40424678" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_1f1ad6ed-86ef-4bf1-a336-29144e10d64d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_50ac4481-a082-46c9-8dc0-d8e3667d5d12" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_d24774e7-c3c9-4663-91ef-741e40424678" xlink:to="loc_tef_GastoFinancieroNeto_50ac4481-a082-46c9-8dc0-d8e3667d5d12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_fad6aaf2-bba7-47fb-9be6-634941d80000" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_d24774e7-c3c9-4663-91ef-741e40424678" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_fad6aaf2-bba7-47fb-9be6-634941d80000" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_5639d2ba-7a3d-436a-848c-a1c193c9062e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherExpenseByNature"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_OtherExpenseByNature_5639d2ba-7a3d-436a-848c-a1c193c9062e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_536cea81-480d-4bb3-850d-97e207109e58" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Revenue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_Revenue_536cea81-480d-4bb3-850d-97e207109e58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_1d1956f3-7adc-4b96-9e35-86bee6a5ac09" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_EmployeeBenefitsExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_1d1956f3-7adc-4b96-9e35-86bee6a5ac09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_249b7ec6-f663-4696-9a25-f98aac707b27" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_RawMaterialsAndConsumablesUsed"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_249b7ec6-f663-4696-9a25-f98aac707b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_1150c2bb-b5c8-4500-bc71-f03c39f10586" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_OtherIncome_1150c2bb-b5c8-4500-bc71-f03c39f10586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_a9bfcdc7-ff69-4b1e-906f-627c2f65a333" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_DepreciationAndAmortisationExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_f8aecc5e-7803-44ea-b50e-6f88d0e6c861" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_a9bfcdc7-ff69-4b1e-906f-627c2f65a333" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_07dc0420-0046-443a-a031-1635f8a4fc17" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_28a60d3b-103d-4f60-9dab-5b4d1501bc3d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_07dc0420-0046-443a-a031-1635f8a4fc17" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_28a60d3b-103d-4f60-9dab-5b4d1501bc3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_732d6298-0c79-47b8-8426-bfbd8bc56618" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_07dc0420-0046-443a-a031-1635f8a4fc17" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_732d6298-0c79-47b8-8426-bfbd8bc56618" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_83e6888c-165f-4315-8b38-b0c90b766809" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_b9a05b8d-37e9-47f5-a628-05d7eaccaf60" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_83e6888c-165f-4315-8b38-b0c90b766809" xlink:to="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_b9a05b8d-37e9-47f5-a628-05d7eaccaf60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_b56730d3-bc36-4a4a-8f42-90853a7b2fc8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_83e6888c-165f-4315-8b38-b0c90b766809" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_b56730d3-bc36-4a4a-8f42-90853a7b2fc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_0de4611f-9a36-443e-9259-0ac3bd7a95e1" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_1c5524cd-b73b-47f8-b773-8705aaa3b433" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_0de4611f-9a36-443e-9259-0ac3bd7a95e1" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_1c5524cd-b73b-47f8-b773-8705aaa3b433" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_11bb7de9-299b-415e-9cf2-90fda5656609" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_0de4611f-9a36-443e-9259-0ac3bd7a95e1" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_11bb7de9-299b-415e-9cf2-90fda5656609" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_750cd044-b908-4379-88f1-f584e1169c21" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_d6b83f52-b168-495f-9063-6ee0cd75f234" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_750cd044-b908-4379-88f1-f584e1169c21" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_d6b83f52-b168-495f-9063-6ee0cd75f234" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_5fdaa418-7fa0-4632-88c6-5454ab3e6fed" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_750cd044-b908-4379-88f1-f584e1169c21" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_5fdaa418-7fa0-4632-88c6-5454ab3e6fed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_a923a40b-57a9-4512-a5f4-ec9165c68079" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3c5b31c8-bca2-41a0-bcc3-f755b2cfc242" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_a923a40b-57a9-4512-a5f4-ec9165c68079" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3c5b31c8-bca2-41a0-bcc3-f755b2cfc242" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_69b3a984-f62d-45bf-93b4-dce7a2848f54" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_a923a40b-57a9-4512-a5f4-ec9165c68079" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_69b3a984-f62d-45bf-93b4-dce7a2848f54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d9eb0bb-b0b6-41e1-9a54-6b1f37edd319" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_eb44a6b9-7ce3-46a8-ac3e-0e6280cec4ab" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d9eb0bb-b0b6-41e1-9a54-6b1f37edd319" xlink:to="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_eb44a6b9-7ce3-46a8-ac3e-0e6280cec4ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_d2ad6f6c-8a20-4a47-86f1-652da1f6e4ba" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d9eb0bb-b0b6-41e1-9a54-6b1f37edd319" xlink:to="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_d2ad6f6c-8a20-4a47-86f1-652da1f6e4ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_4c12a053-19af-425a-bbce-894936b07b38" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d9eb0bb-b0b6-41e1-9a54-6b1f37edd319" xlink:to="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_4c12a053-19af-425a-bbce-894936b07b38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_796c491b-b182-416c-897c-292b746dbcbe" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d9eb0bb-b0b6-41e1-9a54-6b1f37edd319" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_796c491b-b182-416c-897c-292b746dbcbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_13858b25-9383-42c6-8e12-a61346830eb2" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_13858b25-9383-42c6-8e12-a61346830eb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_2e0006da-0e66-4bb9-89f1-f92b7dec4054" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_2e0006da-0e66-4bb9-89f1-f92b7dec4054" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_a1b2b5e3-b65c-473e-9509-f7354817f9d3" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:to="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_a1b2b5e3-b65c-473e-9509-f7354817f9d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_f493790f-7009-4b4c-b468-58a0a1d00b25" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_f493790f-7009-4b4c-b468-58a0a1d00b25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_2ee147e3-012a-4ef0-926b-f8d563759b46" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f6293354-7993-4503-8d02-1c84791a9a94" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_2ee147e3-012a-4ef0-926b-f8d563759b46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_5594d9fe-0c2c-4031-be47-6ee492f95425" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_0db79f66-566d-4e1b-b9f8-8c26c13faa1f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_5594d9fe-0c2c-4031-be47-6ee492f95425" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_0db79f66-566d-4e1b-b9f8-8c26c13faa1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax_dbe1ed25-1b68-42d2-8eb0-8cda03426eab" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_5594d9fe-0c2c-4031-be47-6ee492f95425" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax_dbe1ed25-1b68-42d2-8eb0-8cda03426eab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_4c5c12a7-fd69-4a03-ab14-c96fef4901c9" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_5594d9fe-0c2c-4031-be47-6ee492f95425" xlink:to="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_4c5c12a7-fd69-4a03-ab14-c96fef4901c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_b855e270-8ad1-4340-ad4c-5569a6b09802" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_89ed107b-cccd-48f3-9af9-aa1c3c9282da" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_b855e270-8ad1-4340-ad4c-5569a6b09802" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_89ed107b-cccd-48f3-9af9-aa1c3c9282da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_dd1240ae-2ba2-4d60-b464-dcdc34b14b5b" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_b855e270-8ad1-4340-ad4c-5569a6b09802" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_dd1240ae-2ba2-4d60-b464-dcdc34b14b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_c44357d1-7f3c-4913-9500-ddab83e22cde" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_b855e270-8ad1-4340-ad4c-5569a6b09802" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_c44357d1-7f3c-4913-9500-ddab83e22cde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_3f0fd2bd-a7be-4b07-8cb5-de1343df112f" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_b855e270-8ad1-4340-ad4c-5569a6b09802" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_3f0fd2bd-a7be-4b07-8cb5-de1343df112f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_c61c3652-1cdd-4e5b-9bd0-7cfa33897fdc" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_e75bd543-67ac-425b-a245-154f1f37f23a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_c61c3652-1cdd-4e5b-9bd0-7cfa33897fdc" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_e75bd543-67ac-425b-a245-154f1f37f23a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoAntesDeImpuestos_908449b7-24d3-4062-a7eb-00ee93eb43e1" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoAntesDeImpuestos"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_c61c3652-1cdd-4e5b-9bd0-7cfa33897fdc" xlink:to="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoAntesDeImpuestos_908449b7-24d3-4062-a7eb-00ee93eb43e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLasGananciasRelativoAGananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodo_52310753-5285-4800-b3cd-947dc96e51c4" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ImpuestoSobreLasGananciasRelativoAGananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodo"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodoNetoDeImpuestos_c61c3652-1cdd-4e5b-9bd0-7cfa33897fdc" xlink:to="loc_tef_ImpuestoSobreLasGananciasRelativoAGananciasPerdidasEnLaValoracionDeActivosFinancierosAValorRazonableConCambiosEnOtroResultadoGlobalDelPeriodo_52310753-5285-4800-b3cd-947dc96e51c4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_a5174858-cc98-4385-850f-57e7847d7cfa" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_61acece8-5c72-4c86-828e-f6a1019723d8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_a5174858-cc98-4385-850f-57e7847d7cfa" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_61acece8-5c72-4c86-828e-f6a1019723d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_0f0c30f4-cc6c-4add-97c6-fb38d07a830e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_a5174858-cc98-4385-850f-57e7847d7cfa" xlink:to="loc_ifrs-full_ProfitLoss_0f0c30f4-cc6c-4add-97c6-fb38d07a830e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_d1039244-0006-4792-aefa-c444a703777a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoDeLasOperaciones_da207401-4299-4798-ae17-bfc1233baa63" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_FlujosDeEfectivoDeLasOperaciones"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_d1039244-0006-4792-aefa-c444a703777a" xlink:to="loc_tef_FlujosDeEfectivoDeLasOperaciones_da207401-4299-4798-ae17-bfc1233baa63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_9d2d00bb-2f45-4d8d-bd0e-a80febc18478" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_FlujosDeEfectivoUtilizadosEnOperaciones"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_d1039244-0006-4792-aefa-c444a703777a" xlink:to="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_9d2d00bb-2f45-4d8d-bd0e-a80febc18478" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_cbb01a6b-d305-4999-bb58-44639fa9cbfa" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_d1039244-0006-4792-aefa-c444a703777a" xlink:to="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_cbb01a6b-d305-4999-bb58-44639fa9cbfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_789635b4-e5d0-4bf3-b126-fe792312d8bf" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_d1039244-0006-4792-aefa-c444a703777a" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_789635b4-e5d0-4bf3-b126-fe792312d8bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_1a057840-39f8-4e68-a85e-8a8540b7af3e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_9f31d230-f98a-41ae-99d5-b92d952db897" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Cash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_1a057840-39f8-4e68-a85e-8a8540b7af3e" xlink:to="loc_ifrs-full_Cash_9f31d230-f98a-41ae-99d5-b92d952db897" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_364b4ca6-3168-4f76-9570-5e4c578b9b0c" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_1a057840-39f8-4e68-a85e-8a8540b7af3e" xlink:to="loc_ifrs-full_CashEquivalents_364b4ca6-3168-4f76-9570-5e4c578b9b0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_48eefeee-81c5-402e-ad13-e5681f8d8af4" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_48eefeee-81c5-402e-ad13-e5681f8d8af4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_4a2cbe8b-ecf2-4eef-b96b-4ab30d63f843" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_4a2cbe8b-ecf2-4eef-b96b-4ab30d63f843" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_e480fbd6-b93c-499b-b16a-14d2e3524287" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_e480fbd6-b93c-499b-b16a-14d2e3524287" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_a10f48eb-e401-4a7c-a1c9-1a2c46828b1d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_a10f48eb-e401-4a7c-a1c9-1a2c46828b1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_481b40ef-1c9e-45fd-8ec2-a422448855a4" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_481b40ef-1c9e-45fd-8ec2-a422448855a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_f84fc209-4051-4195-9e3b-a6831b08a5ee" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_d5e58737-99f0-4cea-8405-1e182eaa8af8" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_f84fc209-4051-4195-9e3b-a6831b08a5ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_e1f97653-27c9-4dfc-8f03-70f0b18c1ba9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_e1f97653-27c9-4dfc-8f03-70f0b18c1ba9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_f7a8a457-0337-4c66-8217-ce2d84137a65" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_f7a8a457-0337-4c66-8217-ce2d84137a65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_be9f6c77-5ec3-4e01-acb7-c3fb99bf6fc8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_be9f6c77-5ec3-4e01-acb7-c3fb99bf6fc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_96258a84-73ce-4527-8015-c501b3442d36" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_96258a84-73ce-4527-8015-c501b3442d36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_4c719d05-6ee5-4304-b931-9cf77b1891d8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_4c719d05-6ee5-4304-b931-9cf77b1891d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_b16c45c0-f3df-47d2-b89c-e2063c317f9e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5849be66-561a-44de-aa0e-faa874118ed2" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_b16c45c0-f3df-47d2-b89c-e2063c317f9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_9151a63a-5376-4838-861d-2041f21b509a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_DividendsPaidClassifiedAsFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_9151a63a-5376-4838-861d-2041f21b509a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosCobrosPorReduccionAmpliacionDeCapitalDeInteresesMinoritarios_8a7adff1-b023-480d-9f3a-5f8e626160d7" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_PagosCobrosPorReduccionAmpliacionDeCapitalDeInteresesMinoritarios"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_tef_PagosCobrosPorReduccionAmpliacionDeCapitalDeInteresesMinoritarios_8a7adff1-b023-480d-9f3a-5f8e626160d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_a606a062-e27f-4f94-9caa-d8423855008e" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_a606a062-e27f-4f94-9caa-d8423855008e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_99ea9a49-f499-45d8-888c-31802b48b73e" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_99ea9a49-f499-45d8-888c-31802b48b73e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_756fce06-c17d-42a6-a93e-ebdbe3e4d35e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_756fce06-c17d-42a6-a93e-ebdbe3e4d35e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_1794295a-8185-43b7-aafb-8422c1c40271" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_1794295a-8185-43b7-aafb-8422c1c40271" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_cd7586a0-ed9a-43cd-b021-136f753c4952" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_RepaymentsOfBondsNotesAndDebentures"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_cd7586a0-ed9a-43cd-b021-136f753c4952" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_13e30f52-ff0f-4879-a490-ee6fcd5035d3" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_13e30f52-ff0f-4879-a490-ee6fcd5035d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_a423c1b7-058d-4799-a484-1e76cf63629b" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_a423c1b7-058d-4799-a484-1e76cf63629b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_f5fb6755-6177-482e-9901-f2981d518fad" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8ec000ae-909d-46f5-9618-b49919a5429b" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_f5fb6755-6177-482e-9901-f2981d518fad" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
