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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:65c6ff4b-cf14-4ac7-842c-b314822146e3,g:28f8d371-b940-4ec5-815e-3116bd2d101e-->
<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-2022-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_CurrentLiabilities_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_5e65d009-2ee1-4928-9fa9-4ca78d69210f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_5e65d009-2ee1-4928-9fa9-4ca78d69210f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_0e8af39c-bf3b-44d1-ac02-19710704f3f0" xlink:href="549300EEJH4FEPDBBR25-2022-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_0e8af39c-bf3b-44d1-ac02-19710704f3f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_df7703cd-54ca-4e83-b65f-f499fa93f7c7" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_df7703cd-54ca-4e83-b65f-f499fa93f7c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_88576f90-4e68-4fe4-a6c4-ed14bc97a89d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_ifrs-full_CurrentProvisions_88576f90-4e68-4fe4-a6c4-ed14bc97a89d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_2230fc62-13ea-4939-a615-27ce5ca63132" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_2230fc62-13ea-4939-a615-27ce5ca63132" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_e9adc9bf-b2c8-4851-a159-50999afe722e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_95ce4e40-0e92-4787-99b0-48ce3135659d" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_e9adc9bf-b2c8-4851-a159-50999afe722e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_125667d7-e20f-4268-b579-09d8df9bc42c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_a841e8e3-799a-49f0-b13f-561136e20439" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_125667d7-e20f-4268-b579-09d8df9bc42c" xlink:to="loc_ifrs-full_NoncurrentAssets_a841e8e3-799a-49f0-b13f-561136e20439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_5309847c-3ba3-461c-b237-659c15445612" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_125667d7-e20f-4268-b579-09d8df9bc42c" xlink:to="loc_ifrs-full_CurrentAssets_5309847c-3ba3-461c-b237-659c15445612" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_9b332ab6-558b-4b4b-833a-717022256e2e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_1b8890d4-e17b-4de3-9a26-c03ae31cb236" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_9b332ab6-558b-4b4b-833a-717022256e2e" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_1b8890d4-e17b-4de3-9a26-c03ae31cb236" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_8edcc9b4-a996-42f0-919b-2fafb9260072" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_9b332ab6-558b-4b4b-833a-717022256e2e" xlink:to="loc_ifrs-full_NoncontrollingInterests_8edcc9b4-a996-42f0-919b-2fafb9260072" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_1494add9-e841-4289-82db-4519982d482f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_ifrs-full_Inventories_1494add9-e841-4289-82db-4519982d482f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_de3b5d82-248c-4ee5-8326-4b5953b3bc6d" xlink:href="549300EEJH4FEPDBBR25-2022-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_de3b5d82-248c-4ee5-8326-4b5953b3bc6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_760644a0-d628-44b4-ad87-3e7fe779267b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_760644a0-d628-44b4-ad87-3e7fe779267b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_db6df928-9eb9-484b-af24-37fcb98514dc" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_ifrs-full_CurrentFinancialAssets_db6df928-9eb9-484b-af24-37fcb98514dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_44d05364-9eb8-4215-8372-10705e670837" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_ifrs-full_CashAndCashEquivalents_44d05364-9eb8-4215-8372-10705e670837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_29e582e8-ef55-405a-8c40-41179160d522" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_60101f17-6013-4f1c-bff5-8c91ea565dcd" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_29e582e8-ef55-405a-8c40-41179160d522" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_510624eb-689a-4e06-affb-25cef5466cda" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_d537a253-370a-497c-8bae-6b7f0ffa3557" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_510624eb-689a-4e06-affb-25cef5466cda" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_d537a253-370a-497c-8bae-6b7f0ffa3557" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_a805b315-3ed6-4402-bcfe-9a6e17eba0fb" xlink:href="549300EEJH4FEPDBBR25-2022-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_510624eb-689a-4e06-affb-25cef5466cda" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_a805b315-3ed6-4402-bcfe-9a6e17eba0fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_6c99a21b-b613-467d-b858-0e032d8f50a2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_510624eb-689a-4e06-affb-25cef5466cda" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_6c99a21b-b613-467d-b858-0e032d8f50a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_0b1cc93a-c02f-43ed-90a5-76477de7bc0e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_510624eb-689a-4e06-affb-25cef5466cda" xlink:to="loc_ifrs-full_NoncurrentProvisions_0b1cc93a-c02f-43ed-90a5-76477de7bc0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_617589a7-321d-4807-93a2-5b0e2a8fcf57" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_510624eb-689a-4e06-affb-25cef5466cda" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_617589a7-321d-4807-93a2-5b0e2a8fcf57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_1dd0627a-956a-4bea-9b57-ac851189cda1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_72c64b4a-1b11-429b-8fed-eabd5d54e310" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_1dd0627a-956a-4bea-9b57-ac851189cda1" xlink:to="loc_ifrs-full_Equity_72c64b4a-1b11-429b-8fed-eabd5d54e310" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_6488975e-9de1-4041-8bb5-fab2d40b5a79" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_1dd0627a-956a-4bea-9b57-ac851189cda1" xlink:to="loc_ifrs-full_NoncurrentLiabilities_6488975e-9de1-4041-8bb5-fab2d40b5a79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_9a2490f7-fae1-483c-9fee-5c0ccaf56e9c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_1dd0627a-956a-4bea-9b57-ac851189cda1" xlink:to="loc_ifrs-full_CurrentLiabilities_9a2490f7-fae1-483c-9fee-5c0ccaf56e9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_308630d8-24a4-4f1e-8b48-e6964b01f258" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_308630d8-24a4-4f1e-8b48-e6964b01f258" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_df9896de-1f8d-43bc-9024-61c652df3417" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_Goodwill_df9896de-1f8d-43bc-9024-61c652df3417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_2b894bab-9454-4cb7-a36c-287619bd557b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_2b894bab-9454-4cb7-a36c-287619bd557b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_df3be929-1215-4553-828b-dd362342653e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_df3be929-1215-4553-828b-dd362342653e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_d689dd70-9a86-467f-861d-5462f7e3a956" xlink:href="549300EEJH4FEPDBBR25-2022-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_d689dd70-9a86-467f-861d-5462f7e3a956" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_a8c29e64-a271-4ec8-b63a-ce90939a0b59" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_DeferredTaxAssets_a8c29e64-a271-4ec8-b63a-ce90939a0b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_3d9b6d18-f9b6-4461-bd3a-393b35f5ab5f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f73f184c-ae89-4abb-b5f5-ce6f0ec36060" xlink:to="loc_ifrs-full_RightofuseAssets_3d9b6d18-f9b6-4461-bd3a-393b35f5ab5f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_2239e6b1-5ec4-4294-bf53-616633d49258" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_1dd2a436-837c-4868-99d9-1257c6a16d8b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_2239e6b1-5ec4-4294-bf53-616633d49258" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_1dd2a436-837c-4868-99d9-1257c6a16d8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_50ae3fbb-cf9c-4657-810f-e2572501650e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_2239e6b1-5ec4-4294-bf53-616633d49258" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_50ae3fbb-cf9c-4657-810f-e2572501650e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_e3b4de3b-0943-4c06-8459-aefc4b63c332" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_NetFinancialExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_bc47c679-958a-4b97-96c3-1a5b8e3f0a13" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_e3b4de3b-0943-4c06-8459-aefc4b63c332" xlink:to="loc_ifrs-full_FinanceIncome_bc47c679-958a-4b97-96c3-1a5b8e3f0a13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_0691c00d-e1ed-43f8-b459-9736707c6745" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_e3b4de3b-0943-4c06-8459-aefc4b63c332" xlink:to="loc_ifrs-full_NetForeignExchangeGain_0691c00d-e1ed-43f8-b459-9736707c6745" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_3b46ce99-6386-4fcc-82a0-af899668a37f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_e3b4de3b-0943-4c06-8459-aefc4b63c332" xlink:to="loc_ifrs-full_FinanceCosts_3b46ce99-6386-4fcc-82a0-af899668a37f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_7f4dcd2d-342e-4cd4-b379-ed1bc65dd29d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_e3b4de3b-0943-4c06-8459-aefc4b63c332" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_7f4dcd2d-342e-4cd4-b379-ed1bc65dd29d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_6facd816-ebec-4cd4-b57a-49c12ee47805" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_3003dcf4-e762-4261-a83c-9c0ce3860cea" xlink:href="549300EEJH4FEPDBBR25-2022-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_6facd816-ebec-4cd4-b57a-49c12ee47805" xlink:to="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_3003dcf4-e762-4261-a83c-9c0ce3860cea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_0a842cac-9a36-494a-851d-37ef56e794d4" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_6facd816-ebec-4cd4-b57a-49c12ee47805" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_0a842cac-9a36-494a-851d-37ef56e794d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_350f5be8-3ca0-4cb6-b601-ce1b5e88c671" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_1d785f14-b2ea-4d4a-88d3-4dd0af67ab80" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_350f5be8-3ca0-4cb6-b601-ce1b5e88c671" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_1d785f14-b2ea-4d4a-88d3-4dd0af67ab80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_38bc97f0-f469-4b75-bce8-82d42b7353da" xlink:href="549300EEJH4FEPDBBR25-2022-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_350f5be8-3ca0-4cb6-b601-ce1b5e88c671" xlink:to="loc_tef_NetFinancialExpense_38bc97f0-f469-4b75-bce8-82d42b7353da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_32b21d44-da50-496b-a838-6f54f93a316c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_350f5be8-3ca0-4cb6-b601-ce1b5e88c671" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_32b21d44-da50-496b-a838-6f54f93a316c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_b1250974-fb22-4ccf-a1e2-ad5e1be7baf0" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_b1250974-fb22-4ccf-a1e2-ad5e1be7baf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_7c2e92f2-b346-47ff-b6dd-59a0add433b2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:to="loc_ifrs-full_OtherIncome_7c2e92f2-b346-47ff-b6dd-59a0add433b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_9c186866-a1f1-4e9d-9346-87d01dd02da3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:to="loc_ifrs-full_OtherExpenseByNature_9c186866-a1f1-4e9d-9346-87d01dd02da3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_7c4e39e6-b90b-4446-8a9d-6b53633f50a8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_7c4e39e6-b90b-4446-8a9d-6b53633f50a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_b5083d65-e661-40dd-b297-ae80aa1ef226" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cb7d1be9-a045-4fa1-8426-98b20ebbf507" xlink:to="loc_ifrs-full_Revenue_b5083d65-e661-40dd-b297-ae80aa1ef226" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_b4b105f8-8bd4-4c03-bb96-940d015bc000" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_116f72cf-c526-4775-8f40-6ee8b322cb5e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_b4b105f8-8bd4-4c03-bb96-940d015bc000" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_116f72cf-c526-4775-8f40-6ee8b322cb5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_7db3e188-1517-4410-a054-d1d1e7c65dc1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_b4b105f8-8bd4-4c03-bb96-940d015bc000" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_7db3e188-1517-4410-a054-d1d1e7c65dc1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_8e3e323e-b663-4caf-b4f1-76cf5e7206ce" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_c25c8307-44ad-4bdd-83b5-875614e76cf2" xlink:href="549300EEJH4FEPDBBR25-2022-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_8e3e323e-b663-4caf-b4f1-76cf5e7206ce" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_c25c8307-44ad-4bdd-83b5-875614e76cf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_4be91762-ca96-4650-a3a5-7155242adcaf" xlink:href="549300EEJH4FEPDBBR25-2022-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_8e3e323e-b663-4caf-b4f1-76cf5e7206ce" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_4be91762-ca96-4650-a3a5-7155242adcaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_98d468d8-def7-4129-be10-b9ee4a31c996" xlink:href="549300EEJH4FEPDBBR25-2022-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_8e3e323e-b663-4caf-b4f1-76cf5e7206ce" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_98d468d8-def7-4129-be10-b9ee4a31c996" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_6890795a-6ea4-4b16-81e0-7637c206fff6" xlink:href="549300EEJH4FEPDBBR25-2022-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_8e3e323e-b663-4caf-b4f1-76cf5e7206ce" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_6890795a-6ea4-4b16-81e0-7637c206fff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_0fa38642-b1c2-4d75-ae36-e9c3f352c10d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_85679931-aa6f-4343-9826-51f775032621" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_0fa38642-b1c2-4d75-ae36-e9c3f352c10d" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_85679931-aa6f-4343-9826-51f775032621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_a49b4069-995b-4f47-8cef-526ba85ccc8b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_0fa38642-b1c2-4d75-ae36-e9c3f352c10d" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_a49b4069-995b-4f47-8cef-526ba85ccc8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9b6258ac-3f1b-428a-8a36-0f010551c95b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_9b6258ac-3f1b-428a-8a36-0f010551c95b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_8d4a2ac3-4512-4ecb-9b0c-dbf8f335760e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_8d4a2ac3-4512-4ecb-9b0c-dbf8f335760e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_63f63798-2b6c-4e62-96a5-bbb78cf2a969" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_63f63798-2b6c-4e62-96a5-bbb78cf2a969" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_7a9259d5-cf86-450e-838d-304cbbfbfd4c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_7a9259d5-cf86-450e-838d-304cbbfbfd4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_15859592-195c-47d5-b5d6-e8e3090b313a" xlink:href="549300EEJH4FEPDBBR25-2022-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_cf1e0858-95ec-4fa2-9ad0-6716079cc2d6" xlink:to="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_15859592-195c-47d5-b5d6-e8e3090b313a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_de6ece41-7ad3-42f1-a6b7-3bd3405dbe1e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_cf344e49-0c48-4805-a347-42dea3ea339d" xlink:href="549300EEJH4FEPDBBR25-2022-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_de6ece41-7ad3-42f1-a6b7-3bd3405dbe1e" xlink:to="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_cf344e49-0c48-4805-a347-42dea3ea339d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_309adeb4-3cb9-48a5-a50a-31df222b8aa2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_de6ece41-7ad3-42f1-a6b7-3bd3405dbe1e" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_309adeb4-3cb9-48a5-a50a-31df222b8aa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_a16bbc58-2136-4e54-a555-271a12ee1406" xlink:href="549300EEJH4FEPDBBR25-2022-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_de6ece41-7ad3-42f1-a6b7-3bd3405dbe1e" xlink:to="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_a16bbc58-2136-4e54-a555-271a12ee1406" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_bccef1a1-f905-475c-a97c-5c47e3c533cf" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_90216bf1-627a-4f49-9635-3705c54059ea" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_bccef1a1-f905-475c-a97c-5c47e3c533cf" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_90216bf1-627a-4f49-9635-3705c54059ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_9a83bd1b-bbd7-4043-98cf-74b688ce20c3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_bccef1a1-f905-475c-a97c-5c47e3c533cf" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_9a83bd1b-bbd7-4043-98cf-74b688ce20c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_123264c7-29d9-4b7d-854a-3575efb40791" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_a55624ae-a4bc-4d4a-821a-aa8522ca8cae" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_123264c7-29d9-4b7d-854a-3575efb40791" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_a55624ae-a4bc-4d4a-821a-aa8522ca8cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_39c7145f-ef56-4a9f-9460-6e01c3ec6e03" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_123264c7-29d9-4b7d-854a-3575efb40791" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_39c7145f-ef56-4a9f-9460-6e01c3ec6e03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_4d8471cf-6566-4065-980a-3486131cd2dd" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_123264c7-29d9-4b7d-854a-3575efb40791" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_4d8471cf-6566-4065-980a-3486131cd2dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_2d5092b5-c2e9-4435-ba88-d9a0dbcd39b6" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_04c3b4df-a032-4f0e-b053-1403ea31f7ca" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_2d5092b5-c2e9-4435-ba88-d9a0dbcd39b6" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_04c3b4df-a032-4f0e-b053-1403ea31f7ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_058ee800-031f-43ca-9285-c757fc344202" xlink:href="549300EEJH4FEPDBBR25-2022-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_2d5092b5-c2e9-4435-ba88-d9a0dbcd39b6" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_058ee800-031f-43ca-9285-c757fc344202" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_dee15392-ec4b-4cfd-9e54-924fcdd9fb79" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_2d5092b5-c2e9-4435-ba88-d9a0dbcd39b6" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_dee15392-ec4b-4cfd-9e54-924fcdd9fb79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_13685867-3309-41c7-91e6-8925f308affb" xlink:href="549300EEJH4FEPDBBR25-2022-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_2d5092b5-c2e9-4435-ba88-d9a0dbcd39b6" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_13685867-3309-41c7-91e6-8925f308affb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_f360dcaa-0433-4dc0-9536-a9570cc56f07" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_3e52060a-a0b9-4591-a08f-78c769c78b7f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f360dcaa-0433-4dc0-9536-a9570cc56f07" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_3e52060a-a0b9-4591-a08f-78c769c78b7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d7be340f-8bf3-4526-a761-1661c3f0fee0" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f360dcaa-0433-4dc0-9536-a9570cc56f07" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d7be340f-8bf3-4526-a761-1661c3f0fee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_b9d9d47c-4b21-40e0-b129-d96c239b6e05" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_f360dcaa-0433-4dc0-9536-a9570cc56f07" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_b9d9d47c-4b21-40e0-b129-d96c239b6e05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_4a2826b2-6210-4889-8b59-5d12b1b8f347" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_781ecbc2-3bd1-419f-9f0c-4f3dd88880f3" xlink:href="549300EEJH4FEPDBBR25-2022-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_4a2826b2-6210-4889-8b59-5d12b1b8f347" xlink:to="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_781ecbc2-3bd1-419f-9f0c-4f3dd88880f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_0dc80b09-f8e3-4416-a9b1-aae50f9a0cce" xlink:href="549300EEJH4FEPDBBR25-2022-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_4a2826b2-6210-4889-8b59-5d12b1b8f347" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_0dc80b09-f8e3-4416-a9b1-aae50f9a0cce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_621704f2-1c4e-4566-9783-61e8e2aab741" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_0b9cf929-38d2-4abf-8cc0-2083f7b9c130" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_621704f2-1c4e-4566-9783-61e8e2aab741" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_0b9cf929-38d2-4abf-8cc0-2083f7b9c130" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_10bef64a-a42f-43ff-8b95-503295d5cd45" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_621704f2-1c4e-4566-9783-61e8e2aab741" xlink:to="loc_ifrs-full_ProfitLoss_10bef64a-a42f-43ff-8b95-503295d5cd45" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_CashFlowsFromUsedInOperatingActivities_947c6de3-5d86-420b-9392-e83bb2052669" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReceivedFromOperations_e11d073e-e71f-4fce-b04e-4336eea59b90" xlink:href="549300EEJH4FEPDBBR25-2022-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_947c6de3-5d86-420b-9392-e83bb2052669" xlink:to="loc_tef_CashReceivedFromOperations_e11d073e-e71f-4fce-b04e-4336eea59b90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_bf533306-9f74-4ea1-bef3-f42cfeaa456d" xlink:href="549300EEJH4FEPDBBR25-2022-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_947c6de3-5d86-420b-9392-e83bb2052669" xlink:to="loc_tef_CashPaidFromOperations_bf533306-9f74-4ea1-bef3-f42cfeaa456d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_50a730bb-0eef-4caf-a3d5-a50ee165c934" xlink:href="549300EEJH4FEPDBBR25-2022-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_947c6de3-5d86-420b-9392-e83bb2052669" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_50a730bb-0eef-4caf-a3d5-a50ee165c934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_184aee6c-6aed-4f92-9f33-4956def0b72c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_947c6de3-5d86-420b-9392-e83bb2052669" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_184aee6c-6aed-4f92-9f33-4956def0b72c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_f14da4fc-7f0e-4347-b9bb-885249bffef1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_f14da4fc-7f0e-4347-b9bb-885249bffef1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_4f6c2b67-c916-459c-89d8-e608783e5b8a" xlink:href="549300EEJH4FEPDBBR25-2022-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_4f6c2b67-c916-459c-89d8-e608783e5b8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_e40f7156-719e-40c0-add2-71f737463615" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_e40f7156-719e-40c0-add2-71f737463615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_c52f4310-1e2e-40fe-8080-0aaca470d457" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_c52f4310-1e2e-40fe-8080-0aaca470d457" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_631cc735-e723-48bd-b033-f7395c1f840f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_631cc735-e723-48bd-b033-f7395c1f840f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_81baf2bf-a140-406e-87ea-68fd7a1898a8" xlink:href="549300EEJH4FEPDBBR25-2022-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_783061fa-3da2-4dd8-83f6-5f12f1cdd992" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_81baf2bf-a140-406e-87ea-68fd7a1898a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_7aeb63b9-525f-4c3c-b2f8-0733246d9fac" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_cee6bea3-a45f-4083-99a0-548cf47d0cce" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_7aeb63b9-525f-4c3c-b2f8-0733246d9fac" xlink:to="loc_ifrs-full_Cash_cee6bea3-a45f-4083-99a0-548cf47d0cce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_edb79585-70a3-4bfc-bcbe-4de747ae4d1a" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_7aeb63b9-525f-4c3c-b2f8-0733246d9fac" xlink:to="loc_ifrs-full_CashEquivalents_edb79585-70a3-4bfc-bcbe-4de747ae4d1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_4ae54399-0f83-424d-88a9-6128f0a3249c" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_4ae54399-0f83-424d-88a9-6128f0a3249c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_8dd95abb-5147-4fd1-9212-4f22e5c2b337" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_8dd95abb-5147-4fd1-9212-4f22e5c2b337" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_1b19fb04-54bf-4e3f-97f7-0ce39af3393b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_1b19fb04-54bf-4e3f-97f7-0ce39af3393b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_991e226a-5aa4-4afd-959a-74a86472e5de" xlink:href="549300EEJH4FEPDBBR25-2022-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_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_991e226a-5aa4-4afd-959a-74a86472e5de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_45b96f01-21e6-4b31-a6aa-bdbfae574323" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_45b96f01-21e6-4b31-a6aa-bdbfae574323" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_8890009f-349d-48af-aa03-0e8213e5b0a9" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_266d1c28-04e9-46d0-b85d-03e5a9a2740c" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_8890009f-349d-48af-aa03-0e8213e5b0a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_daf32869-2721-4e62-86eb-11cde2a91d06" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_daf32869-2721-4e62-86eb-11cde2a91d06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_9ca9803c-911f-4061-8fb5-c0aed811234c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_9ca9803c-911f-4061-8fb5-c0aed811234c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_a05a535f-9aed-4a70-a906-0cf4116a2d97" xlink:href="549300EEJH4FEPDBBR25-2022-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_a05a535f-9aed-4a70-a906-0cf4116a2d97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_6bc0bb51-9da9-4a4e-b2de-d1bbacc9148f" xlink:href="549300EEJH4FEPDBBR25-2022-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_tef_OperationsWithOtherEquityHolders_6bc0bb51-9da9-4a4e-b2de-d1bbacc9148f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_35353639-a492-4383-b8de-c4f6a08a2426" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_35353639-a492-4383-b8de-c4f6a08a2426" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_69108e4d-d726-4bc8-bea9-7cc1a9f2c6db" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_69108e4d-d726-4bc8-bea9-7cc1a9f2c6db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_a553f904-cb36-46c1-9c64-c1220a582ec6" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_a553f904-cb36-46c1-9c64-c1220a582ec6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_667d0447-1c50-4fa3-b882-eb166d900067" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_667d0447-1c50-4fa3-b882-eb166d900067" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_ef6b1cd5-1441-4655-adba-1f954dfefbc7" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-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_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_ef6b1cd5-1441-4655-adba-1f954dfefbc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_31fce2cf-f3db-446c-8675-18ef0299e584" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_a228a8de-9902-4b66-9891-b07b9f41cd64" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_31fce2cf-f3db-446c-8675-18ef0299e584" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
