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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:3c4d05fd-75f3-46e0-913a-1aca1b190f34,g:63a8d2a5-6171-4dc0-9195-bf6e82d31d4a-->
<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-2023-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_CurrentAssets_1e53326b-3dd3-4166-aa56-c1503f5a416a" 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_6241ba1d-a99e-4763-8eea-59bce1860f62" 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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_ifrs-full_Inventories_6241ba1d-a99e-4763-8eea-59bce1860f62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_9d8e1de4-fcf0-49cc-a9fe-16d882dbbbcf" xlink:href="549300EEJH4FEPDBBR25-2023-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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_9d8e1de4-fcf0-49cc-a9fe-16d882dbbbcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_87968aa0-7f0c-4580-b9e6-cec8a44f45b2" 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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_87968aa0-7f0c-4580-b9e6-cec8a44f45b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_568c5255-78d6-4efe-82f4-1a6509dc75e6" 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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_ifrs-full_CurrentFinancialAssets_568c5255-78d6-4efe-82f4-1a6509dc75e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_23d48089-4db2-4b32-ab9a-e066106085cb" 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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_ifrs-full_CashAndCashEquivalents_23d48089-4db2-4b32-ab9a-e066106085cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_8eef1e65-6fe4-445a-aaf2-12fbecb71e7f" 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_1e53326b-3dd3-4166-aa56-c1503f5a416a" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_8eef1e65-6fe4-445a-aaf2-12fbecb71e7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" 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_c2f12a8e-ef91-4c35-a719-dd0d507c6840" 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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_c2f12a8e-ef91-4c35-a719-dd0d507c6840" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_4301c7a4-e376-4dd9-9874-c2e4b3027f9d" xlink:href="549300EEJH4FEPDBBR25-2023-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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_4301c7a4-e376-4dd9-9874-c2e4b3027f9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_0172ed1d-4952-4b63-b577-198d2f5cca45" 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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_0172ed1d-4952-4b63-b577-198d2f5cca45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_a9faf6ee-7e4e-42a6-b325-66aeba7d33cd" 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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_ifrs-full_CurrentProvisions_a9faf6ee-7e4e-42a6-b325-66aeba7d33cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_ac05162e-e684-42a4-94b6-89b88dddd40e" 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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_ac05162e-e684-42a4-94b6-89b88dddd40e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_37b36866-1ea2-4466-80bf-409e805b14ec" 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_ad474d83-8b89-4059-b2f0-9e2e46af6f9f" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_37b36866-1ea2-4466-80bf-409e805b14ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_1f7edb91-e92a-4f30-a30b-f563db555d62" 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_bb201091-abcb-4e6c-a237-74d029bc0ec1" 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_1f7edb91-e92a-4f30-a30b-f563db555d62" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_bb201091-abcb-4e6c-a237-74d029bc0ec1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_c7c1edce-3e06-4705-82bc-53ee137a8d30" 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_1f7edb91-e92a-4f30-a30b-f563db555d62" xlink:to="loc_ifrs-full_NoncontrollingInterests_c7c1edce-3e06-4705-82bc-53ee137a8d30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" 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_216f45a8-11ff-4cde-8de4-9f2b9399c5d1" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_216f45a8-11ff-4cde-8de4-9f2b9399c5d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_b0b4da2e-a36c-48c5-80e4-5c5ae8a6529c" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_Goodwill_b0b4da2e-a36c-48c5-80e4-5c5ae8a6529c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_113d811e-e965-4609-a39f-2d0b4ae0d4ef" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_113d811e-e965-4609-a39f-2d0b4ae0d4ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_fa4fc0ac-611d-4913-a803-78baa78ef851" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_fa4fc0ac-611d-4913-a803-78baa78ef851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_91629dde-eb51-4ed2-9762-dc82a24fd010" xlink:href="549300EEJH4FEPDBBR25-2023-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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_91629dde-eb51-4ed2-9762-dc82a24fd010" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_d54dfb54-a3d5-4c6e-a12a-7dd6dafc0e4e" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_DeferredTaxAssets_d54dfb54-a3d5-4c6e-a12a-7dd6dafc0e4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_7e5f6df7-6ad2-4e8e-8063-818abe2af2a7" 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_67c90d8d-d62a-45e2-8ed5-b14452b74ab7" xlink:to="loc_ifrs-full_RightofuseAssets_7e5f6df7-6ad2-4e8e-8063-818abe2af2a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_e369164c-04cb-402a-ac96-be1b6cf0821e" 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_4b152ef6-7132-460c-9574-cbeba53c1074" 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_e369164c-04cb-402a-ac96-be1b6cf0821e" xlink:to="loc_ifrs-full_NoncurrentAssets_4b152ef6-7132-460c-9574-cbeba53c1074" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_62c5e10e-e9a0-413a-bbbd-7339916cb289" 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_e369164c-04cb-402a-ac96-be1b6cf0821e" xlink:to="loc_ifrs-full_CurrentAssets_62c5e10e-e9a0-413a-bbbd-7339916cb289" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_295bae2e-5c86-40b2-b618-91732efd3d66" 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_73525391-5760-455f-837f-26cae53316f6" 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_295bae2e-5c86-40b2-b618-91732efd3d66" xlink:to="loc_ifrs-full_Equity_73525391-5760-455f-837f-26cae53316f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_ef9339f4-18fa-4a89-99f9-75c1b5e25b72" 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_295bae2e-5c86-40b2-b618-91732efd3d66" xlink:to="loc_ifrs-full_NoncurrentLiabilities_ef9339f4-18fa-4a89-99f9-75c1b5e25b72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_17f8f526-a685-4422-b3d7-a718962be86f" 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_295bae2e-5c86-40b2-b618-91732efd3d66" xlink:to="loc_ifrs-full_CurrentLiabilities_17f8f526-a685-4422-b3d7-a718962be86f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_2bbf8df7-6a4c-4f43-a438-ae608862f239" 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_4d740ce3-d6e4-44d3-889d-5ebd676d0cf1" 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_2bbf8df7-6a4c-4f43-a438-ae608862f239" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_4d740ce3-d6e4-44d3-889d-5ebd676d0cf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_2d267fcc-0384-4459-a723-64c29fe4f301" xlink:href="549300EEJH4FEPDBBR25-2023-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_2bbf8df7-6a4c-4f43-a438-ae608862f239" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_2d267fcc-0384-4459-a723-64c29fe4f301" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_b0eb9205-3705-4a4e-b614-aa9feb4c570d" 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_2bbf8df7-6a4c-4f43-a438-ae608862f239" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_b0eb9205-3705-4a4e-b614-aa9feb4c570d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_9d2d59a0-601d-4956-812d-a07842c6ad60" 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_2bbf8df7-6a4c-4f43-a438-ae608862f239" xlink:to="loc_ifrs-full_NoncurrentProvisions_9d2d59a0-601d-4956-812d-a07842c6ad60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_a4f1151a-eba9-4a1a-8952-260ca42c7fe1" 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_2bbf8df7-6a4c-4f43-a438-ae608862f239" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_a4f1151a-eba9-4a1a-8952-260ca42c7fe1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-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_ProfitLossBeforeTax_379dd587-2fff-4652-b43f-82ccd0cb661d" 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_1f403b5f-8b17-4eac-b738-4e58c2615f1d" 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_379dd587-2fff-4652-b43f-82ccd0cb661d" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_1f403b5f-8b17-4eac-b738-4e58c2615f1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_0abcfd01-64a4-4f21-aa06-705ce2b0b384" xlink:href="549300EEJH4FEPDBBR25-2023-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_379dd587-2fff-4652-b43f-82ccd0cb661d" xlink:to="loc_tef_GastoFinancieroNeto_0abcfd01-64a4-4f21-aa06-705ce2b0b384" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_dcb97215-3036-4274-970b-e840c6b54c65" 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_379dd587-2fff-4652-b43f-82ccd0cb661d" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_dcb97215-3036-4274-970b-e840c6b54c65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_5d515d3f-68f8-461e-a615-34449877779c" 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_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_d9744277-12da-4151-96f6-65da7453a2b1" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_5d515d3f-68f8-461e-a615-34449877779c" xlink:to="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_d9744277-12da-4151-96f6-65da7453a2b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_766b0651-92c1-4101-bb39-06b267de1103" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_5d515d3f-68f8-461e-a615-34449877779c" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_766b0651-92c1-4101-bb39-06b267de1103" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_581e0a8c-a198-43bc-b06c-621b8e33acc3" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_4eed8664-c1ad-4212-9b21-779b44c878b8" 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_581e0a8c-a198-43bc-b06c-621b8e33acc3" xlink:to="loc_ifrs-full_FinanceIncome_4eed8664-c1ad-4212-9b21-779b44c878b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_dcd668b9-f5e9-4878-a858-2dbb0ce2710a" 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_581e0a8c-a198-43bc-b06c-621b8e33acc3" xlink:to="loc_ifrs-full_NetForeignExchangeGain_dcd668b9-f5e9-4878-a858-2dbb0ce2710a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_43c08e85-1168-46e7-8d86-7af4c4382e58" 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_581e0a8c-a198-43bc-b06c-621b8e33acc3" xlink:to="loc_ifrs-full_FinanceCosts_43c08e85-1168-46e7-8d86-7af4c4382e58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_a66b46be-746b-4f05-b573-f59d6ac1d79e" 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_581e0a8c-a198-43bc-b06c-621b8e33acc3" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_a66b46be-746b-4f05-b573-f59d6ac1d79e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_73c0a17e-db07-4ade-a123-af0d8cb0a70a" 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="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_73c0a17e-db07-4ade-a123-af0d8cb0a70a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_09eb98f0-be69-4897-bbca-279f152650e0" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:to="loc_ifrs-full_OtherIncome_09eb98f0-be69-4897-bbca-279f152650e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_066bb813-2193-4ae3-b6a6-701755216bcc" 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="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:to="loc_ifrs-full_OtherExpenseByNature_066bb813-2193-4ae3-b6a6-701755216bcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_e91afb1a-9475-469d-9beb-d0d5551ff866" 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_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_e91afb1a-9475-469d-9beb-d0d5551ff866" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_7f45d701-06bc-4516-baf0-93ff6de6435a" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_dd7db4dc-14aa-466f-973f-f698c2b78083" xlink:to="loc_ifrs-full_Revenue_7f45d701-06bc-4516-baf0-93ff6de6435a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_e3dc26c2-faa3-4501-82a2-84ae38ea77b1" 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_03f0dd78-4655-4415-a5d3-4df5b709f4fb" 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_e3dc26c2-faa3-4501-82a2-84ae38ea77b1" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_03f0dd78-4655-4415-a5d3-4df5b709f4fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_314ad13e-f68b-458c-9968-434d6a5f2d9b" 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_e3dc26c2-faa3-4501-82a2-84ae38ea77b1" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_314ad13e-f68b-458c-9968-434d6a5f2d9b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-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_5f123f5e-1a16-449f-b8da-4687eefceb11" 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_f044efd7-632e-4755-bb26-1ea893680c88" 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_5f123f5e-1a16-449f-b8da-4687eefceb11" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_f044efd7-632e-4755-bb26-1ea893680c88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_77add207-353f-4d05-bc66-c8644c8ced34" 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_5f123f5e-1a16-449f-b8da-4687eefceb11" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_77add207-353f-4d05-bc66-c8644c8ced34" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-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_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3332127a-7e93-419f-8d2a-d8eea65ef39f" 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_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_4af5eb25-ede7-4487-ba81-9c12e60848c3" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3332127a-7e93-419f-8d2a-d8eea65ef39f" xlink:to="loc_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_4af5eb25-ede7-4487-ba81-9c12e60848c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_08c6dace-d44e-4459-9656-f64a0fe3d2f5" 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_3332127a-7e93-419f-8d2a-d8eea65ef39f" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_08c6dace-d44e-4459-9656-f64a0fe3d2f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_b0038a02-6ed9-4b0a-9898-26de0b95a3cd" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3332127a-7e93-419f-8d2a-d8eea65ef39f" xlink:to="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_b0038a02-6ed9-4b0a-9898-26de0b95a3cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_0a3d0215-a2dc-4b79-92fe-e8e1d4fdac4a" 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_218169a3-474e-4db6-9431-99cbcdbb42cb" 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_0a3d0215-a2dc-4b79-92fe-e8e1d4fdac4a" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_218169a3-474e-4db6-9431-99cbcdbb42cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_e86b02ab-ef83-4e46-bfde-bf982502e1c2" 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_0a3d0215-a2dc-4b79-92fe-e8e1d4fdac4a" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_e86b02ab-ef83-4e46-bfde-bf982502e1c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_7401f94e-5c46-4a92-82ce-75cbdc5f03a4" 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_0a5be295-2833-440d-acf2-976232411ca5" xlink:href="549300EEJH4FEPDBBR25-2023-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_7401f94e-5c46-4a92-82ce-75cbdc5f03a4" xlink:to="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_0a5be295-2833-440d-acf2-976232411ca5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_fd3d5aa7-de87-4cec-9973-6584e214a67f" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_7401f94e-5c46-4a92-82ce-75cbdc5f03a4" xlink:to="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_fd3d5aa7-de87-4cec-9973-6584e214a67f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_6f803a36-174d-43e1-a2ac-e21dc6e31eb2" 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_6ae298b4-71fb-4807-83a7-9366afbfbc2b" 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_6f803a36-174d-43e1-a2ac-e21dc6e31eb2" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_6ae298b4-71fb-4807-83a7-9366afbfbc2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_2d9d5f11-7ee2-476b-975d-1344b2c4d8c7" xlink:href="549300EEJH4FEPDBBR25-2023-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_6f803a36-174d-43e1-a2ac-e21dc6e31eb2" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_2d9d5f11-7ee2-476b-975d-1344b2c4d8c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_d0dc3d00-428b-422b-bdcc-fd4e86c34db1" 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_6f803a36-174d-43e1-a2ac-e21dc6e31eb2" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_d0dc3d00-428b-422b-bdcc-fd4e86c34db1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_f8e411e4-2fa1-4428-a067-feff70fd2849" xlink:href="549300EEJH4FEPDBBR25-2023-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_6f803a36-174d-43e1-a2ac-e21dc6e31eb2" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_f8e411e4-2fa1-4428-a067-feff70fd2849" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2c438e95-5975-41a8-9b0f-99cc4df027cc" 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_f79828e9-b0c3-415d-86f5-71039f316e90" 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_2c438e95-5975-41a8-9b0f-99cc4df027cc" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_f79828e9-b0c3-415d-86f5-71039f316e90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_ac39adb1-f5c6-4d04-914b-8b2961dabcfb" 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_2c438e95-5975-41a8-9b0f-99cc4df027cc" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_ac39adb1-f5c6-4d04-914b-8b2961dabcfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_3efd69f5-5ef4-429c-8c10-8cb41eed69d9" xlink:href="549300EEJH4FEPDBBR25-2023-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_2c438e95-5975-41a8-9b0f-99cc4df027cc" xlink:to="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_3efd69f5-5ef4-429c-8c10-8cb41eed69d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_71dcb83b-d263-4821-ba40-a997ec85afbb" 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_2c438e95-5975-41a8-9b0f-99cc4df027cc" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_71dcb83b-d263-4821-ba40-a997ec85afbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_0deff47a-70a1-450f-a283-5f4ac293fb23" 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_2c438e95-5975-41a8-9b0f-99cc4df027cc" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_0deff47a-70a1-450f-a283-5f4ac293fb23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2605e487-dba8-4180-ac95-adfcf87697af" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_16207f97-8991-450e-b634-ba2194f34049" xlink:href="549300EEJH4FEPDBBR25-2023-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_2605e487-dba8-4180-ac95-adfcf87697af" xlink:to="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_16207f97-8991-450e-b634-ba2194f34049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_649b36d5-62b7-42d9-81c6-002053492d96" xlink:href="549300EEJH4FEPDBBR25-2023-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_2605e487-dba8-4180-ac95-adfcf87697af" xlink:to="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_649b36d5-62b7-42d9-81c6-002053492d96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_2a3a2395-3daf-4954-83cf-a6ea53658ff9" xlink:href="549300EEJH4FEPDBBR25-2023-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_2605e487-dba8-4180-ac95-adfcf87697af" xlink:to="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_2a3a2395-3daf-4954-83cf-a6ea53658ff9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_aff46cae-76cc-42ed-88a6-c2959de308c7" xlink:href="549300EEJH4FEPDBBR25-2023-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_2605e487-dba8-4180-ac95-adfcf87697af" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_aff46cae-76cc-42ed-88a6-c2959de308c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_2a7785ed-7128-4865-b424-4c78d3d0534d" 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_ec853d69-0461-48db-be0b-db4f2cb3d188" 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_2a7785ed-7128-4865-b424-4c78d3d0534d" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_ec853d69-0461-48db-be0b-db4f2cb3d188" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_39ff0ece-e2ea-418b-acdf-4e2b0b0eaca9" 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_2a7785ed-7128-4865-b424-4c78d3d0534d" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_39ff0ece-e2ea-418b-acdf-4e2b0b0eaca9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3a06148a-4d06-45f2-8d44-9aa2f9751012" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_4e0c6582-eccb-41d7-8986-9ce850ac87a7" 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_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3a06148a-4d06-45f2-8d44-9aa2f9751012" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_4e0c6582-eccb-41d7-8986-9ce850ac87a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_e3d8ae61-051a-46a7-8189-22e4274582f9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3a06148a-4d06-45f2-8d44-9aa2f9751012" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_e3d8ae61-051a-46a7-8189-22e4274582f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_4795848d-d230-4182-9e92-d834f3a4c1ef" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3a06148a-4d06-45f2-8d44-9aa2f9751012" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_4795848d-d230-4182-9e92-d834f3a4c1ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_9ada448f-8cbe-41f2-8a27-67ae17f0a012" 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_3800942d-1f75-437e-b49d-e6e80a9fdcf9" 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_9ada448f-8cbe-41f2-8a27-67ae17f0a012" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_3800942d-1f75-437e-b49d-e6e80a9fdcf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_350886db-b8cc-4bfe-af39-213e391dacea" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_9ada448f-8cbe-41f2-8a27-67ae17f0a012" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_350886db-b8cc-4bfe-af39-213e391dacea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3d4ad7be-8e13-415b-b4e2-94f28e886893" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_9ada448f-8cbe-41f2-8a27-67ae17f0a012" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_3d4ad7be-8e13-415b-b4e2-94f28e886893" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-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_ec83da31-88b4-47f8-90e6-e393d2f1ca10" 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_a704715e-f1d3-4bc1-aa48-0a508702001b" 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_ec83da31-88b4-47f8-90e6-e393d2f1ca10" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_a704715e-f1d3-4bc1-aa48-0a508702001b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_3049bf31-16c4-4016-bf4e-e52a548e282f" 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_ec83da31-88b4-47f8-90e6-e393d2f1ca10" xlink:to="loc_ifrs-full_ProfitLoss_3049bf31-16c4-4016-bf4e-e52a548e282f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-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_CashFlowsFromUsedInFinancingActivities_831a92b2-723f-4dd8-b30d-de239738b336" 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_c0ef4353-091f-46b4-bb57-9889fe8871a9" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_c0ef4353-091f-46b4-bb57-9889fe8871a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_8ddbda8f-a600-41b4-b54d-457bc448d464" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProceedsFromIssuingShares"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_8ddbda8f-a600-41b4-b54d-457bc448d464" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_555211bb-67c1-473f-8471-a9caff02723a" xlink:href="549300EEJH4FEPDBBR25-2023-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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_555211bb-67c1-473f-8471-a9caff02723a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_9c0c2a73-3f59-4932-b463-059bdf3944ac" xlink:href="549300EEJH4FEPDBBR25-2023-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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_9c0c2a73-3f59-4932-b463-059bdf3944ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_62c46b5b-e6f6-499c-8d79-1f39903f938c" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_62c46b5b-e6f6-499c-8d79-1f39903f938c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_5fbf317d-28a0-4119-a7a6-2b7ca994787f" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_5fbf317d-28a0-4119-a7a6-2b7ca994787f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_f0e4f7e2-85f8-4bbb-a184-5de8e213b89a" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_f0e4f7e2-85f8-4bbb-a184-5de8e213b89a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_e5008a70-88c2-49dd-9e0e-ba0f7cbabebf" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_e5008a70-88c2-49dd-9e0e-ba0f7cbabebf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_61b10e74-dcbe-4613-9adf-022df36e7b5c" xlink:href="549300EEJH4FEPDBBR25-2023-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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_61b10e74-dcbe-4613-9adf-022df36e7b5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_66f35ccb-be3a-442d-b718-3c8b37969a4b" 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_831a92b2-723f-4dd8-b30d-de239738b336" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_66f35ccb-be3a-442d-b718-3c8b37969a4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_93e4ef58-0ffd-4d69-8603-4424553d0674" 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_0c52078b-8317-4005-9363-b063a1b524f5" 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_93e4ef58-0ffd-4d69-8603-4424553d0674" xlink:to="loc_ifrs-full_Cash_0c52078b-8317-4005-9363-b063a1b524f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_874441ea-12a1-4ab0-aba4-e766a5c6e9ff" 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_93e4ef58-0ffd-4d69-8603-4424553d0674" xlink:to="loc_ifrs-full_CashEquivalents_874441ea-12a1-4ab0-aba4-e766a5c6e9ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_9e7ff1ed-a362-495b-884d-cc551d3b5edb" 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_38e68f5e-7932-42e8-b0c7-1b9e281c6c7b" xlink:href="549300EEJH4FEPDBBR25-2023-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_9e7ff1ed-a362-495b-884d-cc551d3b5edb" xlink:to="loc_tef_FlujosDeEfectivoDeLasOperaciones_38e68f5e-7932-42e8-b0c7-1b9e281c6c7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_c3a7eadb-6e91-41db-8cd3-504e00d71ead" xlink:href="549300EEJH4FEPDBBR25-2023-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_9e7ff1ed-a362-495b-884d-cc551d3b5edb" xlink:to="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_c3a7eadb-6e91-41db-8cd3-504e00d71ead" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_055799d2-0db1-48bb-9633-5cd854539156" xlink:href="549300EEJH4FEPDBBR25-2023-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_9e7ff1ed-a362-495b-884d-cc551d3b5edb" xlink:to="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_055799d2-0db1-48bb-9633-5cd854539156" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_1947f9d6-2e04-48be-a6de-e46139d313fd" 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_9e7ff1ed-a362-495b-884d-cc551d3b5edb" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_1947f9d6-2e04-48be-a6de-e46139d313fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_343e2fae-6d95-4258-a19b-6849cd25b1a1" 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_87aff78a-229e-4078-a64e-17e3a4194146" xlink:href="549300EEJH4FEPDBBR25-2023-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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_87aff78a-229e-4078-a64e-17e3a4194146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_88195580-c14c-4d1b-947d-8b0e3adad031" xlink:href="549300EEJH4FEPDBBR25-2023-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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_88195580-c14c-4d1b-947d-8b0e3adad031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_6b3d1475-d3af-42a5-8a2c-058cbd517759" xlink:href="549300EEJH4FEPDBBR25-2023-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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_6b3d1475-d3af-42a5-8a2c-058cbd517759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_7e06f42b-9265-4f74-b915-436e2fb61fc3" 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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_7e06f42b-9265-4f74-b915-436e2fb61fc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_222b7069-4028-4ff1-be20-91444568834c" xlink:href="549300EEJH4FEPDBBR25-2023-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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_222b7069-4028-4ff1-be20-91444568834c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_0393e12d-5b2a-4351-8340-272e8a071f98" 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_343e2fae-6d95-4258-a19b-6849cd25b1a1" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_0393e12d-5b2a-4351-8340-272e8a071f98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_9379a254-ee1b-4f34-a4f3-74d0ff62a804" 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_7d0879da-efd6-48ea-816e-8cd3c9e269c7" 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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_7d0879da-efd6-48ea-816e-8cd3c9e269c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_65678b57-604d-405c-b92f-55db4741ae40" xlink:href="549300EEJH4FEPDBBR25-2023-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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_65678b57-604d-405c-b92f-55db4741ae40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_15e0777e-ae9d-4c8e-873f-2faf1acc8ec8" 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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_15e0777e-ae9d-4c8e-873f-2faf1acc8ec8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_3684ea5a-195d-4f17-8a24-0de6dcf69561" xlink:href="549300EEJH4FEPDBBR25-2023-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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_3684ea5a-195d-4f17-8a24-0de6dcf69561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_e6f000c1-8ee2-4f48-9366-8b52e43c40c3" 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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_e6f000c1-8ee2-4f48-9366-8b52e43c40c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_0ac9de42-ff22-49e8-ad3a-ed70d03b607f" 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_9379a254-ee1b-4f34-a4f3-74d0ff62a804" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_0ac9de42-ff22-49e8-ad3a-ed70d03b607f" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
