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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:ac8cca0a-33f9-4a1a-bc09-54a86d27adb3,g:22b47fc2-6f0f-4d48-8947-d07702aed1c0-->
<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-2024-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_Assets_b8f01ac9-2b5b-492e-a597-e95300582639" 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_8bc190d0-b7e0-4b62-967a-dad04954f8f4" 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_b8f01ac9-2b5b-492e-a597-e95300582639" xlink:to="loc_ifrs-full_NoncurrentAssets_8bc190d0-b7e0-4b62-967a-dad04954f8f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_43277b1d-e70b-40ec-84be-8b2f36e27c8e" 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_b8f01ac9-2b5b-492e-a597-e95300582639" xlink:to="loc_ifrs-full_CurrentAssets_43277b1d-e70b-40ec-84be-8b2f36e27c8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_b1071ce7-0c7e-4634-88ec-a48931c21ef1" 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_40ff5c88-799f-4ce9-9098-437ee8c636ef" 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_b1071ce7-0c7e-4634-88ec-a48931c21ef1" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_40ff5c88-799f-4ce9-9098-437ee8c636ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_5a4c3915-595a-4cab-8ced-c78b469f4ecc" 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_b1071ce7-0c7e-4634-88ec-a48931c21ef1" xlink:to="loc_ifrs-full_NoncontrollingInterests_5a4c3915-595a-4cab-8ced-c78b469f4ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" 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_df6ba6a6-1d9a-439d-a9e2-270cdbe56f74" 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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_df6ba6a6-1d9a-439d-a9e2-270cdbe56f74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_b203eb46-56ab-4cee-8992-cff54f1652ca" xlink:href="549300EEJH4FEPDBBR25-2024-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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_b203eb46-56ab-4cee-8992-cff54f1652ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_8878ed19-f533-4996-b7db-a9e61ee082ea" 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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_8878ed19-f533-4996-b7db-a9e61ee082ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_9bf2475e-2918-4915-b4ba-d8a755c7c9df" 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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_ifrs-full_CurrentProvisions_9bf2475e-2918-4915-b4ba-d8a755c7c9df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_bcbf5e6d-1fd2-4b4e-ac6c-40787c874528" 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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_bcbf5e6d-1fd2-4b4e-ac6c-40787c874528" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_5e93b344-32f6-4381-914a-3b53a37c5123" 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_5f357c10-2647-4fd2-842f-fb92fdbfa4ab" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_5e93b344-32f6-4381-914a-3b53a37c5123" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_95c8a03d-c147-4c16-91a0-e2a5fa08611d" 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_d66c2a2b-925f-4220-b855-2171048f13af" 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_95c8a03d-c147-4c16-91a0-e2a5fa08611d" xlink:to="loc_ifrs-full_Equity_d66c2a2b-925f-4220-b855-2171048f13af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_b5a4278c-7e8c-4442-a63d-49a98c12540c" 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_95c8a03d-c147-4c16-91a0-e2a5fa08611d" xlink:to="loc_ifrs-full_NoncurrentLiabilities_b5a4278c-7e8c-4442-a63d-49a98c12540c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_8d7a7af6-db9e-4667-bd28-0da21012f49e" 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_95c8a03d-c147-4c16-91a0-e2a5fa08611d" xlink:to="loc_ifrs-full_CurrentLiabilities_8d7a7af6-db9e-4667-bd28-0da21012f49e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_36442161-dd12-4762-aab8-60754611062b" 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_85f2d47c-f0b3-459d-8806-87ba228d7417" 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_36442161-dd12-4762-aab8-60754611062b" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_85f2d47c-f0b3-459d-8806-87ba228d7417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_f66b9340-7152-4afb-b22e-6611ad807745" xlink:href="549300EEJH4FEPDBBR25-2024-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_36442161-dd12-4762-aab8-60754611062b" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_f66b9340-7152-4afb-b22e-6611ad807745" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_10e90311-e557-4da3-ba7f-d59e28625bdf" 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_36442161-dd12-4762-aab8-60754611062b" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_10e90311-e557-4da3-ba7f-d59e28625bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_1dcd6b8b-6af8-4b76-995a-210d7396be53" 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_36442161-dd12-4762-aab8-60754611062b" xlink:to="loc_ifrs-full_NoncurrentProvisions_1dcd6b8b-6af8-4b76-995a-210d7396be53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_e27efe10-ecc4-467a-85a2-72ba50e871c8" 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_36442161-dd12-4762-aab8-60754611062b" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_e27efe10-ecc4-467a-85a2-72ba50e871c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_dbefe88a-8b24-4f53-b75b-e176d7598baf" 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_630ac6b0-bde4-4455-b8da-ea4a9b81cb26" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_630ac6b0-bde4-4455-b8da-ea4a9b81cb26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_8adcd80a-b6e4-4524-a451-06287a790acf" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_Goodwill_8adcd80a-b6e4-4524-a451-06287a790acf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_0801da65-fee2-4ecf-9d5f-135f9f02af93" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_0801da65-fee2-4ecf-9d5f-135f9f02af93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_183cfa8d-6cd9-4252-aab7-04ebb0cda076" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_183cfa8d-6cd9-4252-aab7-04ebb0cda076" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_bd8bba89-cbc1-4116-8c27-0f5545673623" xlink:href="549300EEJH4FEPDBBR25-2024-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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_bd8bba89-cbc1-4116-8c27-0f5545673623" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_4ce7e4b3-2bab-49cc-b7b7-6d9c1f2fd38c" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_DeferredTaxAssets_4ce7e4b3-2bab-49cc-b7b7-6d9c1f2fd38c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_71f2749c-49f0-47a3-a302-2213ce48cdae" 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_dbefe88a-8b24-4f53-b75b-e176d7598baf" xlink:to="loc_ifrs-full_RightofuseAssets_71f2749c-49f0-47a3-a302-2213ce48cdae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_21dbb5b7-36ed-4186-b173-374af7ecd7a5" 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_a9f78271-5511-44da-b420-578888178308" 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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_ifrs-full_Inventories_a9f78271-5511-44da-b420-578888178308" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_0ec8cd60-a7bc-4732-b665-a7a2e5ff24be" xlink:href="549300EEJH4FEPDBBR25-2024-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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_0ec8cd60-a7bc-4732-b665-a7a2e5ff24be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_dc574238-0f7d-4aca-96bf-9fe9145da8d6" 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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_dc574238-0f7d-4aca-96bf-9fe9145da8d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_798f70c3-443d-4d1c-82b9-f615314493dd" 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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_ifrs-full_CurrentFinancialAssets_798f70c3-443d-4d1c-82b9-f615314493dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_f66a1298-9402-45f3-922f-8d271cb7e651" 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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_ifrs-full_CashAndCashEquivalents_f66a1298-9402-45f3-922f-8d271cb7e651" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_c7cc96be-1618-4524-86af-93873c107d2c" 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_21dbb5b7-36ed-4186-b173-374af7ecd7a5" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_c7cc96be-1618-4524-86af-93873c107d2c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-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_tef_NetFinancialExpense_48b05897-5366-49db-a02b-ae2235ed4d93" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_NetFinancialExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_c78cad2d-2c22-4e5d-b978-49c339a75ff2" 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_48b05897-5366-49db-a02b-ae2235ed4d93" xlink:to="loc_ifrs-full_FinanceIncome_c78cad2d-2c22-4e5d-b978-49c339a75ff2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_800851fd-24fd-43a0-8a66-3701707a0bbe" 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_48b05897-5366-49db-a02b-ae2235ed4d93" xlink:to="loc_ifrs-full_NetForeignExchangeGain_800851fd-24fd-43a0-8a66-3701707a0bbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_f5b48221-d6da-4582-b5c0-a1faa8973172" 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_48b05897-5366-49db-a02b-ae2235ed4d93" xlink:to="loc_ifrs-full_FinanceCosts_f5b48221-d6da-4582-b5c0-a1faa8973172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_d2caa7b6-0928-43af-8979-e00440e7532f" 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_48b05897-5366-49db-a02b-ae2235ed4d93" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_d2caa7b6-0928-43af-8979-e00440e7532f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_acd7be30-db54-4ae7-aab7-22b442d5ed97" 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_c7e6b803-7431-4eb0-8640-8b32cbb50c04" 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_acd7be30-db54-4ae7-aab7-22b442d5ed97" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_c7e6b803-7431-4eb0-8640-8b32cbb50c04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_c33735ca-6bc7-4e40-be19-b51226ae7729" 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_acd7be30-db54-4ae7-aab7-22b442d5ed97" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_c33735ca-6bc7-4e40-be19-b51226ae7729" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_acfe7825-281c-448c-8a13-cbfab398aa3d" 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_cab1c8a3-ef9b-40ae-a1b4-5bef0de61b61" 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_acfe7825-281c-448c-8a13-cbfab398aa3d" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_cab1c8a3-ef9b-40ae-a1b4-5bef0de61b61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_e82c1530-0336-4edb-8f07-71af31757567" xlink:href="549300EEJH4FEPDBBR25-2024-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_acfe7825-281c-448c-8a13-cbfab398aa3d" xlink:to="loc_tef_NetFinancialExpense_e82c1530-0336-4edb-8f07-71af31757567" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_39e90de9-b36d-4d58-bf76-c9ba16a9afdb" 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_acfe7825-281c-448c-8a13-cbfab398aa3d" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_39e90de9-b36d-4d58-bf76-c9ba16a9afdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_dec85e19-0f10-4af3-9dfa-a63328d5229c" 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_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_dec85e19-0f10-4af3-9dfa-a63328d5229c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_bc2b487d-6780-4651-ad6a-b6a3d1efb084" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_OtherExpenseByNature_bc2b487d-6780-4651-ad6a-b6a3d1efb084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_197584e3-9cfa-4b94-935a-a6629227ba19" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_Revenue_197584e3-9cfa-4b94-935a-a6629227ba19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_c387322d-90e8-4cec-92c3-b3e4b887e61a" 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="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_c387322d-90e8-4cec-92c3-b3e4b887e61a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_94556aba-1eb2-4cbf-94d3-6ab1229ad145" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_OtherIncome_94556aba-1eb2-4cbf-94d3-6ab1229ad145" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_9dd5b227-a7b6-4fd8-822b-2ea16c488247" 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="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_82fe2bf6-fdc6-4822-8a4d-04b4ef94c1c2" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_9dd5b227-a7b6-4fd8-822b-2ea16c488247" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-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_7b489ca7-0dba-460c-8ab2-79d9a6a18fee" 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_65634b9d-8743-4ee7-8a23-4103937203c8" 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_7b489ca7-0dba-460c-8ab2-79d9a6a18fee" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_65634b9d-8743-4ee7-8a23-4103937203c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_f4e13f7b-42ca-44f7-9fd6-f9c06ac38eb8" 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_7b489ca7-0dba-460c-8ab2-79d9a6a18fee" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_f4e13f7b-42ca-44f7-9fd6-f9c06ac38eb8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-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_cc87a65f-d4f5-4cba-baa1-aa196ff07b21" 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_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_60c1e41a-2fee-42da-993a-15f89b57426c" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_cc87a65f-d4f5-4cba-baa1-aa196ff07b21" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_60c1e41a-2fee-42da-993a-15f89b57426c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_83b54076-3f4d-43e8-9777-c0f8b636f545" xlink:href="549300EEJH4FEPDBBR25-2024-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_cc87a65f-d4f5-4cba-baa1-aa196ff07b21" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_83b54076-3f4d-43e8-9777-c0f8b636f545" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_4bbf965e-ab0d-4b35-b36d-fccb774f933b" 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_f38fa606-78e9-4a51-9dd4-6d986ec1730f" 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_4bbf965e-ab0d-4b35-b36d-fccb774f933b" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_f38fa606-78e9-4a51-9dd4-6d986ec1730f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_8b9bb1bd-2265-45d0-9250-746fe4ab6d35" 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_4bbf965e-ab0d-4b35-b36d-fccb774f933b" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_8b9bb1bd-2265-45d0-9250-746fe4ab6d35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_ef772602-1ddd-44ac-a715-0946874dc015" 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_7301618d-7b00-498b-baf3-6fad60f48386" 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_ef772602-1ddd-44ac-a715-0946874dc015" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_7301618d-7b00-498b-baf3-6fad60f48386" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_9563113c-2fae-416a-9d27-47e6c8b2b4c5" 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_ef772602-1ddd-44ac-a715-0946874dc015" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_9563113c-2fae-416a-9d27-47e6c8b2b4c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_c4d0013e-35da-41c8-a3a9-dbbb6b701cfb" 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_ef772602-1ddd-44ac-a715-0946874dc015" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_c4d0013e-35da-41c8-a3a9-dbbb6b701cfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_04b51ab8-ef0d-407c-b95f-fe0bbbf5b17a" 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_ef772602-1ddd-44ac-a715-0946874dc015" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_04b51ab8-ef0d-407c-b95f-fe0bbbf5b17a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_920e0fe4-a599-4649-a201-123151ad7f87" xlink:href="549300EEJH4FEPDBBR25-2024-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_ef772602-1ddd-44ac-a715-0946874dc015" xlink:to="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_920e0fe4-a599-4649-a201-123151ad7f87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_544e518c-34c7-4f17-9aee-8667c382102f" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_db3e5197-844e-479e-959a-39ad7b986e1d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_544e518c-34c7-4f17-9aee-8667c382102f" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_db3e5197-844e-479e-959a-39ad7b986e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossBeforeTax_0b4ae7ed-7fd9-4045-a382-b3619745fce5" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_544e518c-34c7-4f17-9aee-8667c382102f" xlink:to="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossBeforeTax_0b4ae7ed-7fd9-4045-a382-b3619745fce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToGainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_b14182fe-1b89-40e9-8106-fdbee786dcdf" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_IncomeTaxRelatingToGainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_544e518c-34c7-4f17-9aee-8667c382102f" xlink:to="loc_tef_IncomeTaxRelatingToGainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_b14182fe-1b89-40e9-8106-fdbee786dcdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_02c4efc8-d75e-4e90-b274-56afa67fc678" 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_17dbdc9d-2f15-4393-8d03-25ca87459345" 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_02c4efc8-d75e-4e90-b274-56afa67fc678" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_17dbdc9d-2f15-4393-8d03-25ca87459345" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_3f8447cd-2353-4d37-86fc-d320ba220245" 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_02c4efc8-d75e-4e90-b274-56afa67fc678" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_3f8447cd-2353-4d37-86fc-d320ba220245" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_0e27c832-6654-4f98-aa01-d689bdd9ea3d" 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_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax_9a61ae0d-701d-49ce-8465-1ef4850506aa" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_0e27c832-6654-4f98-aa01-d689bdd9ea3d" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax_9a61ae0d-701d-49ce-8465-1ef4850506aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_47a115d9-764e-4887-b50f-540c58770468" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_0e27c832-6654-4f98-aa01-d689bdd9ea3d" xlink:to="loc_tef_GainsLossesFromFinancialAssetsMeasuredAtFairValueThroughComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_47a115d9-764e-4887-b50f-540c58770468" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_c18da26a-bfd7-4b5d-a25e-77a9f9f13afe" 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_0e27c832-6654-4f98-aa01-d689bdd9ea3d" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_c18da26a-bfd7-4b5d-a25e-77a9f9f13afe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_e4045630-b5fe-4ac0-9082-54bb170354f4" 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_9b9d5f95-3df7-459a-82b5-02ebdeae8fb0" 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_e4045630-b5fe-4ac0-9082-54bb170354f4" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_9b9d5f95-3df7-459a-82b5-02ebdeae8fb0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_bcc49f7e-c751-43a8-b134-c842b59883e9" xlink:href="549300EEJH4FEPDBBR25-2024-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_e4045630-b5fe-4ac0-9082-54bb170354f4" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_bcc49f7e-c751-43a8-b134-c842b59883e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_a8777e33-dcb5-4c5a-8b01-8a0a7eb5873e" 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_e4045630-b5fe-4ac0-9082-54bb170354f4" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_a8777e33-dcb5-4c5a-8b01-8a0a7eb5873e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_f38c28b6-9fbb-4aa1-9ab8-2a55a7baa99f" xlink:href="549300EEJH4FEPDBBR25-2024-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_e4045630-b5fe-4ac0-9082-54bb170354f4" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_f38c28b6-9fbb-4aa1-9ab8-2a55a7baa99f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_a5171320-75f9-44e3-9655-bdd92e80a196" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_49a2bb91-e1b2-4e7a-8b1c-1c44f56239e4" xlink:href="549300EEJH4FEPDBBR25-2024-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_a5171320-75f9-44e3-9655-bdd92e80a196" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_49a2bb91-e1b2-4e7a-8b1c-1c44f56239e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_aaa3ca4a-bc9e-454c-bfaa-acaf225de23e" xlink:href="549300EEJH4FEPDBBR25-2024-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_a5171320-75f9-44e3-9655-bdd92e80a196" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_aaa3ca4a-bc9e-454c-bfaa-acaf225de23e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_adcbc64e-6dad-43b6-8721-aba244e37d63" xlink:href="549300EEJH4FEPDBBR25-2024-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_a5171320-75f9-44e3-9655-bdd92e80a196" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_adcbc64e-6dad-43b6-8721-aba244e37d63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_63aa3f46-d375-4086-a229-69c95c168bae" xlink:href="549300EEJH4FEPDBBR25-2024-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_a5171320-75f9-44e3-9655-bdd92e80a196" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_63aa3f46-d375-4086-a229-69c95c168bae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_51b72bee-e0eb-4b4f-9956-bcfc7be570c8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_45eb47bb-55c0-448f-bac3-86b227608128" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_51b72bee-e0eb-4b4f-9956-bcfc7be570c8" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_45eb47bb-55c0-448f-bac3-86b227608128" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_44d36dad-09d8-494c-a321-ad1dc7f91944" 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_51b72bee-e0eb-4b4f-9956-bcfc7be570c8" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_44d36dad-09d8-494c-a321-ad1dc7f91944" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-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_05f112f7-df4a-4f33-833c-d9b726730faa" 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_8964f82f-cf82-4edd-be09-068ec42e8027" 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_05f112f7-df4a-4f33-833c-d9b726730faa" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_8964f82f-cf82-4edd-be09-068ec42e8027" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_1295c08d-3c46-4ba4-9444-e218e6041be5" 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_05f112f7-df4a-4f33-833c-d9b726730faa" xlink:to="loc_ifrs-full_ProfitLoss_1295c08d-3c46-4ba4-9444-e218e6041be5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2024-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_CashFlowsFromUsedInFinancingActivities_be5f58ca-f839-4639-95d3-5d0645df87f0" 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_2b6a5b29-99d4-47b0-b766-8036e6184ab7" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_2b6a5b29-99d4-47b0-b766-8036e6184ab7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsFromShareCapitalDecreaseIncreaseWithMinorityInterest_cce79fe9-bd75-435b-8fa9-16a2470d0e1d" xlink:href="549300EEJH4FEPDBBR25-2024-12-31.xsd#tef_PaymentsProceedsFromShareCapitalDecreaseIncreaseWithMinorityInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_tef_PaymentsProceedsFromShareCapitalDecreaseIncreaseWithMinorityInterest_cce79fe9-bd75-435b-8fa9-16a2470d0e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_7dc104cc-22f9-4b03-a419-43f4adfd8da3" xlink:href="549300EEJH4FEPDBBR25-2024-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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_7dc104cc-22f9-4b03-a419-43f4adfd8da3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_f19aa199-94eb-46ad-a9c3-316d83dcc9e2" xlink:href="549300EEJH4FEPDBBR25-2024-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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_tef_OperationsWithOtherEquityHolders_f19aa199-94eb-46ad-a9c3-316d83dcc9e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_47ba650c-5ae6-44af-853e-174f620ab91e" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_47ba650c-5ae6-44af-853e-174f620ab91e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_a267b19a-8838-4932-91ed-b3f348abdcb8" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_a267b19a-8838-4932-91ed-b3f348abdcb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_c1ebcafb-607d-467a-8b27-759421191473" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_c1ebcafb-607d-467a-8b27-759421191473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_748dbf70-a17a-4612-95fd-2274629ea1c2" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_748dbf70-a17a-4612-95fd-2274629ea1c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_cd57e232-650b-4bb9-9c9b-14aa32657675" 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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_cd57e232-650b-4bb9-9c9b-14aa32657675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperatingPaymentsAndFinancingTangibleAndIntangibleInvestments_f2866f25-a645-4b88-8392-8b7b342e1a02" xlink:href="549300EEJH4FEPDBBR25-2024-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_be5f58ca-f839-4639-95d3-5d0645df87f0" xlink:to="loc_tef_OperatingPaymentsAndFinancingTangibleAndIntangibleInvestments_f2866f25-a645-4b88-8392-8b7b342e1a02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_41cee73b-f9d3-4a2d-bff0-4794add6da3a" 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_089a6d29-bff0-47b8-8a3f-0fd37689d0af" 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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_089a6d29-bff0-47b8-8a3f-0fd37689d0af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_1c4658eb-ab61-4d91-a31c-0d43b0f6c91d" xlink:href="549300EEJH4FEPDBBR25-2024-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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_1c4658eb-ab61-4d91-a31c-0d43b0f6c91d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_13e63dcf-9a2c-419f-b325-c0045a41782a" 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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_13e63dcf-9a2c-419f-b325-c0045a41782a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_86562483-bbe1-4eee-b39a-709268a0da07" 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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_86562483-bbe1-4eee-b39a-709268a0da07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_208f633c-d52c-442b-bcc4-3482111c3386" 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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_208f633c-d52c-442b-bcc4-3482111c3386" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_470f79c9-a2c3-488e-8c90-63e7bf93d1d6" xlink:href="549300EEJH4FEPDBBR25-2024-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_41cee73b-f9d3-4a2d-bff0-4794add6da3a" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_470f79c9-a2c3-488e-8c90-63e7bf93d1d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_4e840ffe-ae53-45fb-bd78-b53f8ebcfa72" 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_6f5ab742-1d00-4d70-982a-dd99b61e88a2" xlink:href="549300EEJH4FEPDBBR25-2024-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_4e840ffe-ae53-45fb-bd78-b53f8ebcfa72" xlink:to="loc_tef_CashReceivedFromOperations_6f5ab742-1d00-4d70-982a-dd99b61e88a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_160658f0-a58e-4ba6-9ecd-739f16896c2d" xlink:href="549300EEJH4FEPDBBR25-2024-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_4e840ffe-ae53-45fb-bd78-b53f8ebcfa72" xlink:to="loc_tef_CashPaidFromOperations_160658f0-a58e-4ba6-9ecd-739f16896c2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_34974a11-bf86-41ca-a772-941209bcf7eb" xlink:href="549300EEJH4FEPDBBR25-2024-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_4e840ffe-ae53-45fb-bd78-b53f8ebcfa72" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_34974a11-bf86-41ca-a772-941209bcf7eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_11b0a054-bbfb-43f4-8b44-57bc0601b159" 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_4e840ffe-ae53-45fb-bd78-b53f8ebcfa72" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_11b0a054-bbfb-43f4-8b44-57bc0601b159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_945cdebd-90a8-4a01-80ee-99edaf403d6f" 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_96a30002-2e46-47a1-aa07-07c4c09d6a48" xlink:href="549300EEJH4FEPDBBR25-2024-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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_96a30002-2e46-47a1-aa07-07c4c09d6a48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_0d8b5c46-e342-4d20-bb48-d63d09733fb7" xlink:href="549300EEJH4FEPDBBR25-2024-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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_0d8b5c46-e342-4d20-bb48-d63d09733fb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_67b21670-e967-4a84-9f47-98986abbca8b" 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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_67b21670-e967-4a84-9f47-98986abbca8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_bce03fd6-6ead-4244-9e5f-79918bbde69a" xlink:href="549300EEJH4FEPDBBR25-2024-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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_bce03fd6-6ead-4244-9e5f-79918bbde69a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_ed79ad3d-32cf-495e-8986-bba7f791703a" 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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_ed79ad3d-32cf-495e-8986-bba7f791703a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_0a8a4380-ef8c-4415-910e-93b47867f720" xlink:href="549300EEJH4FEPDBBR25-2024-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_945cdebd-90a8-4a01-80ee-99edaf403d6f" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_0a8a4380-ef8c-4415-910e-93b47867f720" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_b551189f-8b88-43a3-b2e6-ae5900cd3abb" 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_6acc8b1f-2155-487e-bc7e-98e6b8202bdf" 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_b551189f-8b88-43a3-b2e6-ae5900cd3abb" xlink:to="loc_ifrs-full_Cash_6acc8b1f-2155-487e-bc7e-98e6b8202bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_bace0d46-0f3f-419a-b700-169d2735be9d" 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_b551189f-8b88-43a3-b2e6-ae5900cd3abb" xlink:to="loc_ifrs-full_CashEquivalents_bace0d46-0f3f-419a-b700-169d2735be9d" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
