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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:3991bcf1-7107-46af-9587-bd5078c6840d,g:a5ed3d55-366e-4dbf-ac49-060aba53555a-->
<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/ConsolidatedStatementsofFinancialPosition" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedStatementsofFinancialPosition"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedStatementsofFinancialPosition" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_95c0523c-40b9-4cf5-86ee-02a376f7d6ca" 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_b23118e2-5915-4262-b3dd-d625103ed401" 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_95c0523c-40b9-4cf5-86ee-02a376f7d6ca" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_b23118e2-5915-4262-b3dd-d625103ed401" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_dc1d6472-645e-404c-ab17-888649814743" 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_95c0523c-40b9-4cf5-86ee-02a376f7d6ca" xlink:to="loc_ifrs-full_NoncontrollingInterests_dc1d6472-645e-404c-ab17-888649814743" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" 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_384e7413-ee2f-487a-86ea-a4391077d03f" 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_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_ifrs-full_Inventories_384e7413-ee2f-487a-86ea-a4391077d03f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_e8c926c3-dcd5-4015-8415-763371846b51" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ReceivablesAndOtherAssetsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_e8c926c3-dcd5-4015-8415-763371846b51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_a6af870b-06f6-48ab-81ec-7e3bd4af6225" 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_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_a6af870b-06f6-48ab-81ec-7e3bd4af6225" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_c4e4fb7a-7afa-420f-9fe2-411a5f95155e" 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_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_ifrs-full_CurrentFinancialAssets_c4e4fb7a-7afa-420f-9fe2-411a5f95155e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_672a30a8-6489-48df-90f0-185ebe13e414" 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_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_ifrs-full_CashAndCashEquivalents_672a30a8-6489-48df-90f0-185ebe13e414" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_df7789de-2629-4513-a0a8-4d4f8fec2e7c" 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_9bc93ea0-bf7d-4a42-9498-716d2bcf641d" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_df7789de-2629-4513-a0a8-4d4f8fec2e7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_63d20e45-3374-4399-98a8-f15989924483" 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_44a4763a-9b40-4611-bce4-e0b5658fd985" 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_63d20e45-3374-4399-98a8-f15989924483" xlink:to="loc_ifrs-full_Equity_44a4763a-9b40-4611-bce4-e0b5658fd985" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_ad92faa1-65c5-4ff7-ba8c-043349ba4fea" 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_63d20e45-3374-4399-98a8-f15989924483" xlink:to="loc_ifrs-full_NoncurrentLiabilities_ad92faa1-65c5-4ff7-ba8c-043349ba4fea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_38bb5f8d-8a5a-4ea7-afb9-fda15a61db88" 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_63d20e45-3374-4399-98a8-f15989924483" xlink:to="loc_ifrs-full_CurrentLiabilities_38bb5f8d-8a5a-4ea7-afb9-fda15a61db88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_171639da-421a-4f6d-a14a-839b5fa458eb" 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_f31c7689-de03-4dc2-a470-f18146747056" 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_171639da-421a-4f6d-a14a-839b5fa458eb" xlink:to="loc_ifrs-full_NoncurrentAssets_f31c7689-de03-4dc2-a470-f18146747056" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_4936b58f-d674-46db-b9a6-c87589b0afb5" 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_171639da-421a-4f6d-a14a-839b5fa458eb" xlink:to="loc_ifrs-full_CurrentAssets_4936b58f-d674-46db-b9a6-c87589b0afb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_f78af5c1-358d-431d-a402-95129798185c" 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_253daa5f-404d-4d1c-a748-ae3186b830e5" 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_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_253daa5f-404d-4d1c-a748-ae3186b830e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_fa6bc1ae-6f60-409a-a8bb-97dba10d6509" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PayablesAndOtherLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_fa6bc1ae-6f60-409a-a8bb-97dba10d6509" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_6e9df8e1-ff38-4b0b-b9a7-4c252806d454" 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_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_6e9df8e1-ff38-4b0b-b9a7-4c252806d454" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_1f29e758-c890-4323-873f-479d7e3ec23a" 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_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_ifrs-full_CurrentProvisions_1f29e758-c890-4323-873f-479d7e3ec23a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_dbaf9fab-f780-4d23-ad3a-9b407623393a" 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_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_dbaf9fab-f780-4d23-ad3a-9b407623393a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_c223015f-fb33-4240-be54-1066a3024943" 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_f78af5c1-358d-431d-a402-95129798185c" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_c223015f-fb33-4240-be54-1066a3024943" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" 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_556fde34-e7b6-42ba-8e53-45de17ce7271" 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_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_556fde34-e7b6-42ba-8e53-45de17ce7271" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_cfdb28cf-df9b-4fbf-9cc8-d2a559ca8fac" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PayablesAndOtherLiabilitiesNonCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_cfdb28cf-df9b-4fbf-9cc8-d2a559ca8fac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_9cd8c22f-9d17-4c00-9770-3bf0e4ee6d14" 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_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_9cd8c22f-9d17-4c00-9770-3bf0e4ee6d14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_2486d204-6e5d-46ea-893e-8f8766739e82" 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_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" xlink:to="loc_ifrs-full_NoncurrentProvisions_2486d204-6e5d-46ea-893e-8f8766739e82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_37087071-2b29-4aa5-8fed-5ca1e5d2c8cc" 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_0755f46a-42c1-4da0-b7bf-e050dde9fdc2" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_37087071-2b29-4aa5-8fed-5ca1e5d2c8cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_5ccf8860-6641-47af-9e34-a27d93245a03" 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_a057fd44-8aad-40b1-90e9-3fccb4032be9" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_a057fd44-8aad-40b1-90e9-3fccb4032be9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_488908ff-eb4f-4406-bda5-3edcd9f32adf" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_Goodwill_488908ff-eb4f-4406-bda5-3edcd9f32adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_b1252874-b0bc-489a-a163-4e8151198a8c" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_b1252874-b0bc-489a-a163-4e8151198a8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_1f323580-a854-483a-be81-7a311b9803d6" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_1f323580-a854-483a-be81-7a311b9803d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_50db14e8-3ad7-4e18-a19c-5ba12879e2d8" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_FinancialAssetsAndOtherAssetsNonCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_50db14e8-3ad7-4e18-a19c-5ba12879e2d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_8e686981-9350-49e3-8620-162354a41c70" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_DeferredTaxAssets_8e686981-9350-49e3-8620-162354a41c70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_8813cb4c-5f4a-4778-90ca-c948b394db31" 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_5ccf8860-6641-47af-9e34-a27d93245a03" xlink:to="loc_ifrs-full_RightofuseAssets_8813cb4c-5f4a-4778-90ca-c948b394db31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedIncomeStatements"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedIncomeStatements" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_592c4d58-1b70-4080-81c1-33a51616b28e" 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_ebc145b7-41ba-4e92-8085-7c2fbcfdf35b" 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_592c4d58-1b70-4080-81c1-33a51616b28e" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_ebc145b7-41ba-4e92-8085-7c2fbcfdf35b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_c4513cb4-7819-49c3-95f1-b77604929ba1" 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_592c4d58-1b70-4080-81c1-33a51616b28e" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_c4513cb4-7819-49c3-95f1-b77604929ba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_72d31041-eb3c-470c-8a08-694a84a4cf28" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_NetFinancialExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_81f502eb-60ae-4434-819c-82dc402e780d" 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_NetFinancialExpense_72d31041-eb3c-470c-8a08-694a84a4cf28" xlink:to="loc_ifrs-full_FinanceIncome_81f502eb-60ae-4434-819c-82dc402e780d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_4493efcb-3e24-4c03-901f-768418289bf2" 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_NetFinancialExpense_72d31041-eb3c-470c-8a08-694a84a4cf28" xlink:to="loc_ifrs-full_NetForeignExchangeGain_4493efcb-3e24-4c03-901f-768418289bf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_f11da6ed-5a1c-4e3d-acb6-469d13691992" 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_NetFinancialExpense_72d31041-eb3c-470c-8a08-694a84a4cf28" xlink:to="loc_ifrs-full_FinanceCosts_f11da6ed-5a1c-4e3d-acb6-469d13691992" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_19d6a6ae-cfb3-42e9-a1ee-74cb5abdf00f" 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_NetFinancialExpense_72d31041-eb3c-470c-8a08-694a84a4cf28" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_19d6a6ae-cfb3-42e9-a1ee-74cb5abdf00f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_310e8786-6a89-4558-a287-bf70a1b15f0f" 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_4c84b622-5d3c-4af0-aae3-3fe362ea4f6e" 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_310e8786-6a89-4558-a287-bf70a1b15f0f" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_4c84b622-5d3c-4af0-aae3-3fe362ea4f6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_e3cc2f82-e16f-48a7-b2da-ff3daef36c99" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_NetFinancialExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_310e8786-6a89-4558-a287-bf70a1b15f0f" xlink:to="loc_tef_NetFinancialExpense_e3cc2f82-e16f-48a7-b2da-ff3daef36c99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_9200c846-442e-4a07-8baa-b2a4f45c230d" 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_310e8786-6a89-4558-a287-bf70a1b15f0f" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_9200c846-442e-4a07-8baa-b2a4f45c230d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_0a6835d6-48b2-4f04-a620-15424de2e316" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_8af8d74b-cc7f-4df3-8d86-1463652b1b6a" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_0a6835d6-48b2-4f04-a620-15424de2e316" xlink:to="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_8af8d74b-cc7f-4df3-8d86-1463652b1b6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_8d0c33fb-bd07-466e-b270-35a1b500d22d" 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_0a6835d6-48b2-4f04-a620-15424de2e316" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_8d0c33fb-bd07-466e-b270-35a1b500d22d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_7cbf563d-8c3a-4461-b0e8-6ee3fc84bb1d" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_7cbf563d-8c3a-4461-b0e8-6ee3fc84bb1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_28aec430-cd8e-4fd0-875a-a2c4957cd46b" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:to="loc_ifrs-full_OtherIncome_28aec430-cd8e-4fd0-875a-a2c4957cd46b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_7558f567-95d3-4dbb-a3bb-f91c61c4dfee" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:to="loc_ifrs-full_OtherExpenseByNature_7558f567-95d3-4dbb-a3bb-f91c61c4dfee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_d47c7231-27c9-4786-8415-ca4db057ef98" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_d47c7231-27c9-4786-8415-ca4db057ef98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_3aa187dc-be3a-480e-9a14-72f1402bf91c" 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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_9bc98749-687d-4f34-a22d-8c1b4faa1f04" xlink:to="loc_ifrs-full_Revenue_3aa187dc-be3a-480e-9a14-72f1402bf91c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedIncomeStatements_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedIncomeStatements_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_f8d83db3-1989-4a37-9e85-2be2fdab0b0e" 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_b03b9dca-b248-4fe2-9c54-8524bcad6649" 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_f8d83db3-1989-4a37-9e85-2be2fdab0b0e" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_b03b9dca-b248-4fe2-9c54-8524bcad6649" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_87234ae7-e3d0-4161-833d-f19f2670acce" 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_f8d83db3-1989-4a37-9e85-2be2fdab0b0e" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_87234ae7-e3d0-4161-833d-f19f2670acce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_6c4ac43b-0fcc-4c2a-9c21-9a1b414f6482" 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_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_21f01460-6026-49b9-a235-dddbc9d4a0a6" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_6c4ac43b-0fcc-4c2a-9c21-9a1b414f6482" xlink:to="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_21f01460-6026-49b9-a235-dddbc9d4a0a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_79989915-022b-4ecc-a9db-77a39f1131df" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_6c4ac43b-0fcc-4c2a-9c21-9a1b414f6482" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_79989915-022b-4ecc-a9db-77a39f1131df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_2b617dc8-35c5-47a0-9348-740e59e09a22" 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_29d3c979-610b-4e8d-80f0-2dc3f0967cb5" 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_2b617dc8-35c5-47a0-9348-740e59e09a22" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_29d3c979-610b-4e8d-80f0-2dc3f0967cb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_4c04c74c-e756-4f52-8473-72e38114a52b" 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_2b617dc8-35c5-47a0-9348-740e59e09a22" xlink:to="loc_ifrs-full_ProfitLoss_4c04c74c-e756-4f52-8473-72e38114a52b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_9123af08-2771-42e1-b10b-e416e7fe6381" 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_9857519e-74b1-4e4d-affe-634f57f321c4" 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_9123af08-2771-42e1-b10b-e416e7fe6381" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9857519e-74b1-4e4d-affe-634f57f321c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_f2b04b16-bd43-4e06-b69e-28cc85d188df" 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_9123af08-2771-42e1-b10b-e416e7fe6381" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_f2b04b16-bd43-4e06-b69e-28cc85d188df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_0e315ba4-b830-4c5a-aad8-68e0b5ad9dc6" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_9123af08-2771-42e1-b10b-e416e7fe6381" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_0e315ba4-b830-4c5a-aad8-68e0b5ad9dc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_3f6b9e57-de98-4af4-b4a5-5ebd702f9ee2" 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="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_9123af08-2771-42e1-b10b-e416e7fe6381" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_3f6b9e57-de98-4af4-b4a5-5ebd702f9ee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_5c413c75-75db-4f86-be85-145e1a67d6cd" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_9123af08-2771-42e1-b10b-e416e7fe6381" xlink:to="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_5c413c75-75db-4f86-be85-145e1a67d6cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_2f1b6de8-8a19-473a-b523-d98e17253b99" 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_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_af89079b-cf6c-4b99-a3a5-dc47fc5a5e67" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_2f1b6de8-8a19-473a-b523-d98e17253b99" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_af89079b-cf6c-4b99-a3a5-dc47fc5a5e67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d4c2f48a-5ac7-43df-ac8f-20c5af518f66" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_2f1b6de8-8a19-473a-b523-d98e17253b99" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d4c2f48a-5ac7-43df-ac8f-20c5af518f66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_e4a9d2cd-5868-4d0b-b25b-4499727b7707" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_2f1b6de8-8a19-473a-b523-d98e17253b99" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_e4a9d2cd-5868-4d0b-b25b-4499727b7707" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_f14716a3-6acc-4275-a089-60771b88c213" 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_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_679552e8-81a6-40e4-9716-3d2995c6494c" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_f14716a3-6acc-4275-a089-60771b88c213" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_679552e8-81a6-40e4-9716-3d2995c6494c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_ccb03c01-4c88-4be2-8f5f-f45f51eceb07" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_f14716a3-6acc-4275-a089-60771b88c213" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_ccb03c01-4c88-4be2-8f5f-f45f51eceb07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_31b1b7b0-6e6a-4e3d-ba7d-27b8ffe16058" 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="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_f14716a3-6acc-4275-a089-60771b88c213" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_31b1b7b0-6e6a-4e3d-ba7d-27b8ffe16058" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_d4eae365-a1b7-45ea-a7a5-e29f14b0c821" 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_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_8b44c8fc-dd59-48b2-b9d8-60e9623396e7" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_d4eae365-a1b7-45ea-a7a5-e29f14b0c821" xlink:to="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_8b44c8fc-dd59-48b2-b9d8-60e9623396e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_57720f1f-d185-4b0e-859c-a699d462351c" 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_d4eae365-a1b7-45ea-a7a5-e29f14b0c821" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_57720f1f-d185-4b0e-859c-a699d462351c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_a1c7eedd-18df-467b-8911-5ec0c8708706" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_d4eae365-a1b7-45ea-a7a5-e29f14b0c821" xlink:to="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_a1c7eedd-18df-467b-8911-5ec0c8708706" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_51e24c4d-7a72-4c82-bee6-05407e73f49e" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_5d3cdf76-ea2b-4ad1-9775-171f3c4f07c8" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_GainsLossesOnCashFlowHedgeCostsBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_51e24c4d-7a72-4c82-bee6-05407e73f49e" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_5d3cdf76-ea2b-4ad1-9775-171f3c4f07c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_8475fcac-53dc-4aab-8e3a-51973a92ea76" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_51e24c4d-7a72-4c82-bee6-05407e73f49e" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_8475fcac-53dc-4aab-8e3a-51973a92ea76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_73d20312-9f72-48d1-ba79-ff5f00558af4" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_51e24c4d-7a72-4c82-bee6-05407e73f49e" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_73d20312-9f72-48d1-ba79-ff5f00558af4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_46a20ba5-9990-4329-b664-582b1407f485" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_51e24c4d-7a72-4c82-bee6-05407e73f49e" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_46a20ba5-9990-4329-b664-582b1407f485" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9a591dd6-0383-49ec-9866-8b3108c8bbee" 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_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_7a817e7b-1f64-40fd-9a9c-e051b6e84c32" 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="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9a591dd6-0383-49ec-9866-8b3108c8bbee" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_7a817e7b-1f64-40fd-9a9c-e051b6e84c32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_fd664c87-9f78-4696-97ac-83adfb470685" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9a591dd6-0383-49ec-9866-8b3108c8bbee" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_fd664c87-9f78-4696-97ac-83adfb470685" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_c4e8ba83-55b6-4739-9ff7-3c19e392c3c0" 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_2f1727ef-dc7e-4db9-9334-b5611a69c4dc" 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_c4e8ba83-55b6-4739-9ff7-3c19e392c3c0" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_2f1727ef-dc7e-4db9-9334-b5611a69c4dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_fa50203f-506a-4760-9458-efa315958dfa" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_TaxEffectOnGainsLossesOnHedges"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_c4e8ba83-55b6-4739-9ff7-3c19e392c3c0" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_fa50203f-506a-4760-9458-efa315958dfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_a84eb570-78d5-4b1f-86ee-13c921097556" 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_c4e8ba83-55b6-4739-9ff7-3c19e392c3c0" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_a84eb570-78d5-4b1f-86ee-13c921097556" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_1403d41e-78e8-402f-83a3-6c411b61e627" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_c4e8ba83-55b6-4739-9ff7-3c19e392c3c0" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_1403d41e-78e8-402f-83a3-6c411b61e627" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedStatementsofComprehensiveIncome_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_36cd97ca-9003-4f0e-8979-d2b349ea42e0" 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_c97eec09-0062-4c72-8200-41887b223197" 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_36cd97ca-9003-4f0e-8979-d2b349ea42e0" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_c97eec09-0062-4c72-8200-41887b223197" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_e58dd3a4-f195-4113-a514-915db4b40c42" 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_36cd97ca-9003-4f0e-8979-d2b349ea42e0" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_e58dd3a4-f195-4113-a514-915db4b40c42" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" 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_CashFlowsFromUsedInOperatingActivities_872fbbb8-1e1c-48b4-bb74-96dd54a5991a" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_872fbbb8-1e1c-48b4-bb74-96dd54a5991a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_8a4581b2-5192-479c-af96-24772a814f08" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_CashReclassifiedToAssetsHeldForSale"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_8a4581b2-5192-479c-af96-24772a814f08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_7a7a6735-925a-413c-b06b-35c2a161b351" 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_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_7a7a6735-925a-413c-b06b-35c2a161b351" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_35350042-c402-4cfe-b1fa-9d94341e83f9" 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="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_35350042-c402-4cfe-b1fa-9d94341e83f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_3b6e0901-8279-475d-b4fb-9ea402728761" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_3b6e0901-8279-475d-b4fb-9ea402728761" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_3a79edaa-ea4e-4b8b-b6c0-95b8705cfd02" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_87e2deaa-5c0a-4acd-9c99-a447cb733863" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_3a79edaa-ea4e-4b8b-b6c0-95b8705cfd02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_09a3eb53-b006-4073-95de-c3b0fabc0309" 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_27f9ae34-f22e-40ff-b47a-fb6eb9ce7ec7" 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_09a3eb53-b006-4073-95de-c3b0fabc0309" xlink:to="loc_ifrs-full_Cash_27f9ae34-f22e-40ff-b47a-fb6eb9ce7ec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_a5d400d6-0d1d-4fd5-85a1-e4af3217471c" 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_09a3eb53-b006-4073-95de-c3b0fabc0309" xlink:to="loc_ifrs-full_CashEquivalents_a5d400d6-0d1d-4fd5-85a1-e4af3217471c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_b1a30a63-a7ef-43c5-adcd-2d4bbd5443e0" 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_CashReceivedFromOperations_45aa9956-c47a-4815-81c4-8f999138ba22" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_CashReceivedFromOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_b1a30a63-a7ef-43c5-adcd-2d4bbd5443e0" xlink:to="loc_tef_CashReceivedFromOperations_45aa9956-c47a-4815-81c4-8f999138ba22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_8042c5a4-3bf4-4e9b-af75-ad1e4ece062c" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_CashPaidFromOperations"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_b1a30a63-a7ef-43c5-adcd-2d4bbd5443e0" xlink:to="loc_tef_CashPaidFromOperations_8042c5a4-3bf4-4e9b-af75-ad1e4ece062c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_82f157ff-a49d-4131-b192-42e87c2edb4f" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_b1a30a63-a7ef-43c5-adcd-2d4bbd5443e0" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_82f157ff-a49d-4131-b192-42e87c2edb4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_0d51d491-5b37-4da9-906b-53fdc9fcaaf6" 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_b1a30a63-a7ef-43c5-adcd-2d4bbd5443e0" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_0d51d491-5b37-4da9-906b-53fdc9fcaaf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" 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_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_7d3ec8f0-6256-4d6f-a0d2-ce4f31686498" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_7d3ec8f0-6256-4d6f-a0d2-ce4f31686498" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_6785f4bb-0fda-47ee-a83a-86243b4e46ee" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_6785f4bb-0fda-47ee-a83a-86243b4e46ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_0e8961e3-883b-4e42-aeb2-2b5061248bac" 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="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_0e8961e3-883b-4e42-aeb2-2b5061248bac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_e3315899-690f-4792-9b44-245bb6eb36d1" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_e3315899-690f-4792-9b44-245bb6eb36d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_958b06e4-95ed-4ec0-80d7-7bc59217ae7a" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_958b06e4-95ed-4ec0-80d7-7bc59217ae7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_0a052e57-2f04-49fc-a519-21f16ce8a3e8" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_9fed6cdc-edd7-4c1e-a772-76b55e1f70f7" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_0a052e57-2f04-49fc-a519-21f16ce8a3e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_37535435-310b-474e-ad6e-dd8c7eaa8e96" 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_2085b0cc-d920-4815-9d4f-c954b3f83bb7" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_2085b0cc-d920-4815-9d4f-c954b3f83bb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_2a948fbf-631b-4efc-a7ef-5bccf8747f22" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_2a948fbf-631b-4efc-a7ef-5bccf8747f22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_0a9053b5-1334-4e22-9299-256fe08cd83b" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_0a9053b5-1334-4e22-9299-256fe08cd83b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_b63b1dfa-ebb2-4866-9b0b-c974d3f5504b" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_OperationsWithOtherEquityHolders"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_tef_OperationsWithOtherEquityHolders_b63b1dfa-ebb2-4866-9b0b-c974d3f5504b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_621d5d5b-684e-42d2-b6cf-ba3ee0626172" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_621d5d5b-684e-42d2-b6cf-ba3ee0626172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_d18868fd-fef0-4f22-b2ae-bb219611807a" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_d18868fd-fef0-4f22-b2ae-bb219611807a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_95cfd4bd-34b4-4c8b-acb2-673deb29ce65" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_95cfd4bd-34b4-4c8b-acb2-673deb29ce65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_667b25eb-1d2e-47db-a392-8b8450eb3b75" 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_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_667b25eb-1d2e-47db-a392-8b8450eb3b75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_5302d98c-18dc-42bd-b4db-f93b963258ab" 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="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_5302d98c-18dc-42bd-b4db-f93b963258ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperatingPaymentsAndFinancingTangibleAndIntangibleInvestments_32332a67-8b89-4205-976e-597a932a78d7" xlink:href="549300EEJH4FEPDBBR25-2023-12-31.xsd#tef_OperatingPaymentsAndFinancingTangibleAndIntangibleInvestments"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_37535435-310b-474e-ad6e-dd8c7eaa8e96" xlink:to="loc_tef_OperatingPaymentsAndFinancingTangibleAndIntangibleInvestments_32332a67-8b89-4205-976e-597a932a78d7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
