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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:5ff366b6-6617-4be5-bbe4-8feeb5fbd818,g:c4c27ae6-f95b-4771-8618-8b134e2e8ac1-->
<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-2021-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_ebe11c29-59b8-457d-a3c9-9e238f7d9d98" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_43db49d3-b713-488a-adce-ebc74944af43" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_ebe11c29-59b8-457d-a3c9-9e238f7d9d98" xlink:to="loc_ifrs-full_NoncurrentAssets_43db49d3-b713-488a-adce-ebc74944af43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_ade2e3fd-7454-440d-84a5-c29e9aa2a6d7" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_ebe11c29-59b8-457d-a3c9-9e238f7d9d98" xlink:to="loc_ifrs-full_CurrentAssets_ade2e3fd-7454-440d-84a5-c29e9aa2a6d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_c93c9594-b1bb-4421-8061-7123fa759648" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_d66e0b29-2501-4fd1-bfe8-d11be81b04b1" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_c93c9594-b1bb-4421-8061-7123fa759648" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_d66e0b29-2501-4fd1-bfe8-d11be81b04b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_d5478531-d640-4bbe-ad9a-5fa8527336fd" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_c93c9594-b1bb-4421-8061-7123fa759648" xlink:to="loc_ifrs-full_NoncontrollingInterests_d5478531-d640-4bbe-ad9a-5fa8527336fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_35b5f72c-9d08-4c9f-a046-1cbad5f890ee" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_ifrs-full_Inventories_35b5f72c-9d08-4c9f-a046-1cbad5f890ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_5091a45f-b615-4a6e-87b2-23e094b8167c" xlink:href="549300EEJH4FEPDBBR25-2021-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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_5091a45f-b615-4a6e-87b2-23e094b8167c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_d1d9b225-ed04-4c30-9db8-cb71079dbe0f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_d1d9b225-ed04-4c30-9db8-cb71079dbe0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_6920cc45-abb8-4c21-9ba5-4dbce9f10e88" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_ifrs-full_CurrentFinancialAssets_6920cc45-abb8-4c21-9ba5-4dbce9f10e88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_5911a638-d02a-475e-bbe9-c894a075c942" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_ifrs-full_CashAndCashEquivalents_5911a638-d02a-475e-bbe9-c894a075c942" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_31308740-48ea-4b91-835c-eae2dbfc2fee" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d2ce0251-b0cb-438d-8a4e-f7ed57033ed5" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_31308740-48ea-4b91-835c-eae2dbfc2fee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_811c3c86-a700-4eae-b8b7-3f4b02eab888" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_0a68e531-9c09-474e-b566-9c1dc255057e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_811c3c86-a700-4eae-b8b7-3f4b02eab888" xlink:to="loc_ifrs-full_Equity_0a68e531-9c09-474e-b566-9c1dc255057e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_6d43f499-dc05-493a-a482-285e5dc1a717" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_811c3c86-a700-4eae-b8b7-3f4b02eab888" xlink:to="loc_ifrs-full_NoncurrentLiabilities_6d43f499-dc05-493a-a482-285e5dc1a717" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_5567474f-cf8f-48c0-a3a6-d8d969473184" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_811c3c86-a700-4eae-b8b7-3f4b02eab888" xlink:to="loc_ifrs-full_CurrentLiabilities_5567474f-cf8f-48c0-a3a6-d8d969473184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_c8367745-88d0-4349-8deb-337f4f4099ef" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_c8367745-88d0-4349-8deb-337f4f4099ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_95c5a8f7-4dd8-4675-a660-71b078c2d7b0" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_Goodwill_95c5a8f7-4dd8-4675-a660-71b078c2d7b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_6cf2ba93-3ab4-47bc-a09c-3215765af66f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_6cf2ba93-3ab4-47bc-a09c-3215765af66f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_d864854f-d0de-4f23-90a8-ddced5efec71" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_d864854f-d0de-4f23-90a8-ddced5efec71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_2cc4b7c5-402a-45c3-8b32-f661fca7a71a" xlink:href="549300EEJH4FEPDBBR25-2021-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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_2cc4b7c5-402a-45c3-8b32-f661fca7a71a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_1622f9b6-66d0-43da-bbc7-24bbda900de2" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_DeferredTaxAssets_1622f9b6-66d0-43da-bbc7-24bbda900de2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_0ad3d74c-2e3c-4494-bd84-1de250e7f554" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c7084d5-f6cf-4929-93bb-77b3b73a4562" xlink:to="loc_ifrs-full_RightofuseAssets_0ad3d74c-2e3c-4494-bd84-1de250e7f554" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_5e2fd866-0458-4717-958d-f802c7345fbb" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_5e2fd866-0458-4717-958d-f802c7345fbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_6fbf7cd9-18b7-43f6-8524-7a0a1ee22ab0" xlink:href="549300EEJH4FEPDBBR25-2021-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_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_6fbf7cd9-18b7-43f6-8524-7a0a1ee22ab0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_6e973a83-ed35-4e88-968b-e4c79ce49d42" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_6e973a83-ed35-4e88-968b-e4c79ce49d42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_93c3f0ab-70a9-48ef-a23b-c16e9d8ba84a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:to="loc_ifrs-full_NoncurrentProvisions_93c3f0ab-70a9-48ef-a23b-c16e9d8ba84a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_5435424c-2ec9-4807-b6a2-52bf9312a522" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_86e64016-5cc6-4960-8b5a-3580adda5c95" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_5435424c-2ec9-4807-b6a2-52bf9312a522" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_f9758cb0-2b63-4774-aa13-a1df345faf55" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_f9758cb0-2b63-4774-aa13-a1df345faf55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_fc56f4da-75b9-4a81-911b-19822309ab7e" xlink:href="549300EEJH4FEPDBBR25-2021-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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_fc56f4da-75b9-4a81-911b-19822309ab7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_ae37212d-e4eb-4c72-80a9-1bceaa924b63" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_ae37212d-e4eb-4c72-80a9-1bceaa924b63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_60773034-c8d4-4577-a351-d6801e50bcf8" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_ifrs-full_CurrentProvisions_60773034-c8d4-4577-a351-d6801e50bcf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_d253970a-9407-44af-a875-eed9d1aca54a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_d253970a-9407-44af-a875-eed9d1aca54a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_1cdd120c-6cbf-4ea1-95dd-00a8a5e24485" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_b32fcd4c-88b9-4701-9de4-8b2d78a43926" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_1cdd120c-6cbf-4ea1-95dd-00a8a5e24485" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_e9ed96e5-0a73-4841-af04-414470d556a9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_e9ed96e5-0a73-4841-af04-414470d556a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_0a1763cf-9fa4-4fa4-a887-7616cbf0af07" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:to="loc_ifrs-full_OtherIncome_0a1763cf-9fa4-4fa4-a887-7616cbf0af07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_319da93e-394a-47e2-ad88-fa38143eb32c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:to="loc_ifrs-full_OtherExpenseByNature_319da93e-394a-47e2-ad88-fa38143eb32c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_64797bf4-2447-4b02-9006-633c8e6bb346" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_64797bf4-2447-4b02-9006-633c8e6bb346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_f7bcab5c-b2a1-4c0e-907a-bf7caa24a74e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6842b370-f9f6-456e-a4cd-602ba14707b7" xlink:to="loc_ifrs-full_Revenue_f7bcab5c-b2a1-4c0e-907a-bf7caa24a74e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_779a5c10-81f0-41a7-8a89-e5db99335a90" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_57643ec2-deac-4c69-b1ff-2967dd98aa08" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_779a5c10-81f0-41a7-8a89-e5db99335a90" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_57643ec2-deac-4c69-b1ff-2967dd98aa08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_69e5a40c-c8b2-40b4-8d55-bafa5aca7e0b" xlink:href="549300EEJH4FEPDBBR25-2021-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_779a5c10-81f0-41a7-8a89-e5db99335a90" xlink:to="loc_tef_NetFinancialExpense_69e5a40c-c8b2-40b4-8d55-bafa5aca7e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_cf7557b7-62ba-4ce9-9599-c82eb9900c32" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_779a5c10-81f0-41a7-8a89-e5db99335a90" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_cf7557b7-62ba-4ce9-9599-c82eb9900c32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_6912ba56-f79c-490e-93d2-128e3a58b668" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_b8024f8a-0b9b-4f2d-9043-47c4733c7d6f" xlink:href="549300EEJH4FEPDBBR25-2021-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_6912ba56-f79c-490e-93d2-128e3a58b668" xlink:to="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_b8024f8a-0b9b-4f2d-9043-47c4733c7d6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_d369c4e6-ba1c-4d13-a30a-db15f59a9f7c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_6912ba56-f79c-490e-93d2-128e3a58b668" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_d369c4e6-ba1c-4d13-a30a-db15f59a9f7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_477277fa-4dd6-420c-8524-5064e9eb8ab7" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_7182a966-6913-419c-a46f-5fe810bd134c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_477277fa-4dd6-420c-8524-5064e9eb8ab7" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_7182a966-6913-419c-a46f-5fe810bd134c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_63280291-88d0-49c7-9d32-acf3f3c940b3" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_477277fa-4dd6-420c-8524-5064e9eb8ab7" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_63280291-88d0-49c7-9d32-acf3f3c940b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_95e28893-780b-4091-acd5-112b0a174b8d" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_NetFinancialExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_55b1c2c7-ce65-4f5a-a782-5471f7831d78" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_95e28893-780b-4091-acd5-112b0a174b8d" xlink:to="loc_ifrs-full_FinanceIncome_55b1c2c7-ce65-4f5a-a782-5471f7831d78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_7b686bda-05c9-42a4-a527-f09e8beff31b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_95e28893-780b-4091-acd5-112b0a174b8d" xlink:to="loc_ifrs-full_NetForeignExchangeGain_7b686bda-05c9-42a4-a527-f09e8beff31b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_b2cd0733-87ae-4c46-bc54-0b1b6f3c06eb" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_95e28893-780b-4091-acd5-112b0a174b8d" xlink:to="loc_ifrs-full_FinanceCosts_b2cd0733-87ae-4c46-bc54-0b1b6f3c06eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_5fa3c2c0-9287-4edd-9b68-1663c6bfdedc" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_95e28893-780b-4091-acd5-112b0a174b8d" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_5fa3c2c0-9287-4edd-9b68-1663c6bfdedc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedIncomeStatements_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_8c4ab418-db03-45cb-b586-b5348ca2673e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_a85694d4-d6c1-4cad-a07f-b95a9411f0fd" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8c4ab418-db03-45cb-b586-b5348ca2673e" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_a85694d4-d6c1-4cad-a07f-b95a9411f0fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_4e1caa5c-1843-4859-821a-219f65047f99" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8c4ab418-db03-45cb-b586-b5348ca2673e" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_4e1caa5c-1843-4859-821a-219f65047f99" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_882dd7e7-6b91-4c8a-a38f-49c571f82bcc" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_2cd37b02-b8fe-4381-a897-09d13f6f4bf2" xlink:href="549300EEJH4FEPDBBR25-2021-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_882dd7e7-6b91-4c8a-a38f-49c571f82bcc" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_2cd37b02-b8fe-4381-a897-09d13f6f4bf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_4be4d826-ba3b-4ec5-b8d9-871c1ff78057" xlink:href="549300EEJH4FEPDBBR25-2021-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_882dd7e7-6b91-4c8a-a38f-49c571f82bcc" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_4be4d826-ba3b-4ec5-b8d9-871c1ff78057" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_b8b37b1c-4c00-4909-b3d1-40eedf3d3d62" xlink:href="549300EEJH4FEPDBBR25-2021-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_882dd7e7-6b91-4c8a-a38f-49c571f82bcc" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_b8b37b1c-4c00-4909-b3d1-40eedf3d3d62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_b5ca3d69-e120-4129-9494-e5d1c5f766c8" xlink:href="549300EEJH4FEPDBBR25-2021-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_882dd7e7-6b91-4c8a-a38f-49c571f82bcc" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_b5ca3d69-e120-4129-9494-e5d1c5f766c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_8fabf8ca-460a-4753-97a1-9c2fadaee725" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_91b7c8aa-79f3-4bbf-a03f-05c443e3af3e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8fabf8ca-460a-4753-97a1-9c2fadaee725" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_91b7c8aa-79f3-4bbf-a03f-05c443e3af3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_d695d217-6dad-4a65-a2fa-3d0dff0afdd1" xlink:href="549300EEJH4FEPDBBR25-2021-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_8fabf8ca-460a-4753-97a1-9c2fadaee725" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_d695d217-6dad-4a65-a2fa-3d0dff0afdd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_6da9d317-f365-4eae-8764-4001283f04e1" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8fabf8ca-460a-4753-97a1-9c2fadaee725" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_6da9d317-f365-4eae-8764-4001283f04e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_c1d99f26-8b28-4deb-9329-da51170d6cfa" xlink:href="549300EEJH4FEPDBBR25-2021-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_8fabf8ca-460a-4753-97a1-9c2fadaee725" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_c1d99f26-8b28-4deb-9329-da51170d6cfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_d52ced82-838f-406d-afbd-0e3792927ef3" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_4e7d7de7-8fb0-4d66-a985-a4948a46bb01" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d52ced82-838f-406d-afbd-0e3792927ef3" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_4e7d7de7-8fb0-4d66-a985-a4948a46bb01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_02003f52-9786-468f-a845-3c6ac403fdf4" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_d52ced82-838f-406d-afbd-0e3792927ef3" xlink:to="loc_ifrs-full_ProfitLoss_02003f52-9786-468f-a845-3c6ac403fdf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_c9c96828-481f-4293-b239-66980b3561ca" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_c9c96828-481f-4293-b239-66980b3561ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_777bc19a-abef-44d1-a518-84511843d3c3" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_777bc19a-abef-44d1-a518-84511843d3c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_9507fb11-08ee-4d95-b99d-e50d3f8df2f9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_9507fb11-08ee-4d95-b99d-e50d3f8df2f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_56aedb4b-52d2-4bd7-abb5-9f62d19d17c5" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_56aedb4b-52d2-4bd7-abb5-9f62d19d17c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_3c341837-0180-4151-95c6-cf5dd2d005ca" xlink:href="549300EEJH4FEPDBBR25-2021-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_7fd19794-b83d-41c7-922f-3723c6e26bee" xlink:to="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_3c341837-0180-4151-95c6-cf5dd2d005ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_8f8dbb5c-e662-4845-91c6-0ef4effdf959" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_6b0a74f6-261d-4ab6-96eb-c910cb17aac1" xlink:href="549300EEJH4FEPDBBR25-2021-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_8f8dbb5c-e662-4845-91c6-0ef4effdf959" xlink:to="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_6b0a74f6-261d-4ab6-96eb-c910cb17aac1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_94214b58-6852-4345-80d7-8864f58494ad" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8f8dbb5c-e662-4845-91c6-0ef4effdf959" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_94214b58-6852-4345-80d7-8864f58494ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_2ee77043-4095-4a15-9498-d5c66c1011e4" xlink:href="549300EEJH4FEPDBBR25-2021-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_8f8dbb5c-e662-4845-91c6-0ef4effdf959" xlink:to="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_2ee77043-4095-4a15-9498-d5c66c1011e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_8b5bb0c5-eabf-4006-9f92-80df9e1d5561" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_32e0be0d-814b-40d4-906e-181a846633c9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_8b5bb0c5-eabf-4006-9f92-80df9e1d5561" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_32e0be0d-814b-40d4-906e-181a846633c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_2286fc34-e8e2-4717-8039-14bf357d3b09" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_8b5bb0c5-eabf-4006-9f92-80df9e1d5561" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_2286fc34-e8e2-4717-8039-14bf357d3b09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_802c2b66-0364-4247-a891-15082e8229ea" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_58a6cb37-5e5b-4d46-b4ec-3d9fa4dbcce3" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_802c2b66-0364-4247-a891-15082e8229ea" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_58a6cb37-5e5b-4d46-b4ec-3d9fa4dbcce3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_a4b1ecf6-d714-402a-b990-ae7baf43a5f3" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_802c2b66-0364-4247-a891-15082e8229ea" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_a4b1ecf6-d714-402a-b990-ae7baf43a5f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_1f983b12-3735-45f1-8822-33ea0a6c04bb" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_545db912-cd6c-4a79-810d-81e928b91b13" xlink:href="549300EEJH4FEPDBBR25-2021-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_1f983b12-3735-45f1-8822-33ea0a6c04bb" xlink:to="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_545db912-cd6c-4a79-810d-81e928b91b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_2d870645-2e7c-499a-9345-350f6c5c4a96" xlink:href="549300EEJH4FEPDBBR25-2021-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_1f983b12-3735-45f1-8822-33ea0a6c04bb" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_2d870645-2e7c-499a-9345-350f6c5c4a96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_293f0930-d07c-45c2-a134-0a2305016e32" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_1f983b12-3735-45f1-8822-33ea0a6c04bb" xlink:to="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_293f0930-d07c-45c2-a134-0a2305016e32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_4b313051-dc09-4718-ba2a-f4bee1599208" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_1f983b12-3735-45f1-8822-33ea0a6c04bb" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_4b313051-dc09-4718-ba2a-f4bee1599208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_ab9b1759-6df2-43aa-803c-f74cbb14bada" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_6dda1bdf-3e5d-42e8-ad74-b867e387152b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_ab9b1759-6df2-43aa-803c-f74cbb14bada" xlink:to="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_6dda1bdf-3e5d-42e8-ad74-b867e387152b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_6501901b-6cca-4224-ad20-dc763011facc" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_ab9b1759-6df2-43aa-803c-f74cbb14bada" xlink:to="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_6501901b-6cca-4224-ad20-dc763011facc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_946d41d5-7102-4fc8-8d9e-7b5a7ec4fc67" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_ab9b1759-6df2-43aa-803c-f74cbb14bada" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_946d41d5-7102-4fc8-8d9e-7b5a7ec4fc67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_d7610bba-e013-4dd7-9ab0-38858f1eafe6" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_ab9b1759-6df2-43aa-803c-f74cbb14bada" xlink:to="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_d7610bba-e013-4dd7-9ab0-38858f1eafe6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofComprehensiveIncome_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_1a5ab072-7e58-4044-8e42-d52931885b9a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_8fd60715-820b-4760-9a2d-b7358ded297d" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_1a5ab072-7e58-4044-8e42-d52931885b9a" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_8fd60715-820b-4760-9a2d-b7358ded297d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_3f7f7742-6ebe-40c7-9ed4-1b29b077c011" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_1a5ab072-7e58-4044-8e42-d52931885b9a" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_3f7f7742-6ebe-40c7-9ed4-1b29b077c011" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_9dfa6ab8-8fc3-4106-9839-14cd4df32300" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_9dfa6ab8-8fc3-4106-9839-14cd4df32300" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_7d37b276-b493-4476-9ccd-a242dd8df320" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_7d37b276-b493-4476-9ccd-a242dd8df320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_ebaef424-802c-46fb-8f7d-7d1dfada3e6f" xlink:href="549300EEJH4FEPDBBR25-2021-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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_ebaef424-802c-46fb-8f7d-7d1dfada3e6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_7f972cc4-4535-4b79-9f29-b725ce3e1ebe" xlink:href="549300EEJH4FEPDBBR25-2021-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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_tef_OperationsWithOtherEquityHolders_7f972cc4-4535-4b79-9f29-b725ce3e1ebe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_c74bb9f6-c978-492e-98b3-4c7b6ed765dc" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_c74bb9f6-c978-492e-98b3-4c7b6ed765dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_c1a88e49-2e22-416a-85b2-7ad8e4bc926a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_c1a88e49-2e22-416a-85b2-7ad8e4bc926a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_517b4408-1d07-4f67-9b23-73d3b6dd9738" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_517b4408-1d07-4f67-9b23-73d3b6dd9738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_89894dc5-ae6b-43b3-84c0-df6c2e8dcb0d" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_89894dc5-ae6b-43b3-84c0-df6c2e8dcb0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_5abe46ab-7c4c-42a5-bbb8-c51ded6dcf0f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_5abe46ab-7c4c-42a5-bbb8-c51ded6dcf0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_e9656aaa-b5b5-483d-aa1e-ff459252d7c6" xlink:href="549300EEJH4FEPDBBR25-2021-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_46716f6a-4f92-4526-98c1-bbd66e4e8d37" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_e9656aaa-b5b5-483d-aa1e-ff459252d7c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1f9fe826-9f0d-4c5a-855b-21ffc33a33fe" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReceivedFromOperations_90ffead4-fc76-4e81-90b6-a6eb7af91355" xlink:href="549300EEJH4FEPDBBR25-2021-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_1f9fe826-9f0d-4c5a-855b-21ffc33a33fe" xlink:to="loc_tef_CashReceivedFromOperations_90ffead4-fc76-4e81-90b6-a6eb7af91355" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_962561a6-b0de-4314-957d-ac65d23e3f44" xlink:href="549300EEJH4FEPDBBR25-2021-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_1f9fe826-9f0d-4c5a-855b-21ffc33a33fe" xlink:to="loc_tef_CashPaidFromOperations_962561a6-b0de-4314-957d-ac65d23e3f44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_32f70d50-0a46-494a-aabd-f2a92d88d617" xlink:href="549300EEJH4FEPDBBR25-2021-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_1f9fe826-9f0d-4c5a-855b-21ffc33a33fe" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_32f70d50-0a46-494a-aabd-f2a92d88d617" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_4cb67eba-6e3e-4069-9b45-951aabcb64d1" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_1f9fe826-9f0d-4c5a-855b-21ffc33a33fe" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_4cb67eba-6e3e-4069-9b45-951aabcb64d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_db56ea91-bb11-47c1-9cfa-43d73101a786" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_db56ea91-bb11-47c1-9cfa-43d73101a786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_3c3e9563-8cdd-424b-a86d-3ec118099680" xlink:href="549300EEJH4FEPDBBR25-2021-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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_3c3e9563-8cdd-424b-a86d-3ec118099680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_1e292df1-00c8-42b8-a29e-2965fc9440ed" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_1e292df1-00c8-42b8-a29e-2965fc9440ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_230420a7-c83d-46a1-bf98-48836e510446" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_230420a7-c83d-46a1-bf98-48836e510446" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_db66edd4-a27f-4d31-9faf-43982e879138" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_db66edd4-a27f-4d31-9faf-43982e879138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_811e95f3-1651-4544-a3e8-5b3af4aab78f" xlink:href="549300EEJH4FEPDBBR25-2021-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_4df8de04-13b6-4f52-8eda-0fd09f4e81f9" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_811e95f3-1651-4544-a3e8-5b3af4aab78f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_4c8c30d3-b268-4f89-a505-0a37213df749" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_942be00d-20d5-4b3e-9405-115afc4d5ada" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c8c30d3-b268-4f89-a505-0a37213df749" xlink:to="loc_ifrs-full_Cash_942be00d-20d5-4b3e-9405-115afc4d5ada" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_f8ee1ba0-8096-48d2-9745-6cc8d97c704b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_4c8c30d3-b268-4f89-a505-0a37213df749" xlink:to="loc_ifrs-full_CashEquivalents_f8ee1ba0-8096-48d2-9745-6cc8d97c704b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_6f4c9ddb-f79d-4907-a3b3-82a801096fc2" xlink:href="549300EEJH4FEPDBBR25-2021-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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_6f4c9ddb-f79d-4907-a3b3-82a801096fc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_3ba0629e-2b69-435e-98f0-e452a522533c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_3ba0629e-2b69-435e-98f0-e452a522533c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_50148b55-ace4-4705-a08f-bba5f87ffe34" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_50148b55-ace4-4705-a08f-bba5f87ffe34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_6b8eb533-83d8-426d-a2d5-29807cdf1926" xlink:href="549300EEJH4FEPDBBR25-2021-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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_6b8eb533-83d8-426d-a2d5-29807cdf1926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_bdc99e8e-1176-4791-b7c0-9dcfa88c4da1" xlink:href="549300EEJH4FEPDBBR25-2021-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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_bdc99e8e-1176-4791-b7c0-9dcfa88c4da1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_99377564-d962-4464-ae57-3d40625c6369" xlink:href="549300EEJH4FEPDBBR25-2021-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_19f605af-17dd-4a9e-8d61-19b660b153e5" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_99377564-d962-4464-ae57-3d40625c6369" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
