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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:b233b413-fc25-429b-a50e-761509d2e188,g:dc6ce899-739d-4402-8d92-367ecc8460ce-->
<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/TagsthatmustbeappliedifcorrespondinginformationispresentinareportStatement" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#TagsthatmustbeappliedifcorrespondinginformationispresentinareportStatement"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/TagsthatmustbeappliedifcorrespondinginformationispresentinareportStatement" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdesituacinfinancieraconsolidadosal31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Estadosdesituacinfinancieraconsolidadosal31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosdesituacinfinancieraconsolidadosal31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_4ffb1b8d-feab-4062-93ca-d80ffc6938e4" 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_aa6d8cab-22d0-4655-82c6-3c773db7c901" 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_4ffb1b8d-feab-4062-93ca-d80ffc6938e4" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_aa6d8cab-22d0-4655-82c6-3c773db7c901" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_c946ec4d-bdf9-4306-a3dd-542457abe45a" 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_4ffb1b8d-feab-4062-93ca-d80ffc6938e4" xlink:to="loc_ifrs-full_NoncontrollingInterests_c946ec4d-bdf9-4306-a3dd-542457abe45a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" 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_0a43ccac-b012-47ef-8f70-208992b8669d" 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_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_ifrs-full_Inventories_0a43ccac-b012-47ef-8f70-208992b8669d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_e8916091-4b63-4ae0-b0c3-c2d04f45540b" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_CuentasPorCobrarYOtrosActivosCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_e8916091-4b63-4ae0-b0c3-c2d04f45540b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_21a8b4ac-9219-4a7c-9db7-4a3ccb1196f6" 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_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_21a8b4ac-9219-4a7c-9db7-4a3ccb1196f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_7b9f64d7-435b-4dc2-be84-ee4a53e7d3b5" 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_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_ifrs-full_CurrentFinancialAssets_7b9f64d7-435b-4dc2-be84-ee4a53e7d3b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_4a8d6504-b46b-4911-85c9-46f1e7a585bd" 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_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_ifrs-full_CashAndCashEquivalents_4a8d6504-b46b-4911-85c9-46f1e7a585bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_00837689-6e70-4a6c-b2ae-fdaa7ddc1924" 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_3db68bd9-ccce-4f14-89ea-16dfe3d5564e" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_00837689-6e70-4a6c-b2ae-fdaa7ddc1924" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_887eaba1-7932-4a5c-8a25-4847ae751b7d" 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_3abf12ed-f194-4cba-bdd6-c240a7794862" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_3abf12ed-f194-4cba-bdd6-c240a7794862" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_5eeb4187-d2bb-4f1e-8768-fa3514553cce" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_Goodwill_5eeb4187-d2bb-4f1e-8768-fa3514553cce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_5bbed2e8-9f4f-48ae-8846-0015c7bbc4c9" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_5bbed2e8-9f4f-48ae-8846-0015c7bbc4c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_60ba346a-2abc-4377-a4da-41b77f42f917" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_60ba346a-2abc-4377-a4da-41b77f42f917" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_32af7108-54aa-4b89-8526-6973457fea17" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ActivosFinancierosYOtrosActivosNoCorrientes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_32af7108-54aa-4b89-8526-6973457fea17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_eb12302e-54e7-4344-85bb-edcd2bc13899" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_DeferredTaxAssets_eb12302e-54e7-4344-85bb-edcd2bc13899" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_ea120ca8-5569-4313-a3b6-ced3371808ef" 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_887eaba1-7932-4a5c-8a25-4847ae751b7d" xlink:to="loc_ifrs-full_RightofuseAssets_ea120ca8-5569-4313-a3b6-ced3371808ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_602b2890-9fad-4bbb-8734-559b07dc52c9" 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_83e5ec94-1c7d-4045-be86-625eb3c474c0" 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_602b2890-9fad-4bbb-8734-559b07dc52c9" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_83e5ec94-1c7d-4045-be86-625eb3c474c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_880f235f-e768-40cb-a454-fbd68b14bb82" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_CuentasAPagarYOtrosPasivosNoCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_602b2890-9fad-4bbb-8734-559b07dc52c9" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_880f235f-e768-40cb-a454-fbd68b14bb82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_70a16e12-f134-41d9-8bdc-2335971bfd88" 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_602b2890-9fad-4bbb-8734-559b07dc52c9" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_70a16e12-f134-41d9-8bdc-2335971bfd88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_2613a552-4707-46dd-87cd-4aee58b82d94" 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_602b2890-9fad-4bbb-8734-559b07dc52c9" xlink:to="loc_ifrs-full_NoncurrentProvisions_2613a552-4707-46dd-87cd-4aee58b82d94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_56a9211e-803d-4b01-a79f-39fec5366dc6" 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_602b2890-9fad-4bbb-8734-559b07dc52c9" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_56a9211e-803d-4b01-a79f-39fec5366dc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_865957a4-b1b9-4f1f-8c5a-eb0505cb6a1e" 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_1eda3871-fb99-4c80-9514-5ed57849c6be" 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_865957a4-b1b9-4f1f-8c5a-eb0505cb6a1e" xlink:to="loc_ifrs-full_NoncurrentAssets_1eda3871-fb99-4c80-9514-5ed57849c6be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_9c244050-8f62-47fc-b60a-7ce85f51632a" 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_865957a4-b1b9-4f1f-8c5a-eb0505cb6a1e" xlink:to="loc_ifrs-full_CurrentAssets_9c244050-8f62-47fc-b60a-7ce85f51632a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_6448f8fd-acec-4eb3-a26b-1139bdcde818" 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_377b8cca-b80c-4eb7-845b-be530a4ca42a" 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_6448f8fd-acec-4eb3-a26b-1139bdcde818" xlink:to="loc_ifrs-full_Equity_377b8cca-b80c-4eb7-845b-be530a4ca42a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_c5e32a01-9648-4d05-9e84-95a234948f65" 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_6448f8fd-acec-4eb3-a26b-1139bdcde818" xlink:to="loc_ifrs-full_NoncurrentLiabilities_c5e32a01-9648-4d05-9e84-95a234948f65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_81a0e004-e537-48bf-a61b-d8ae9bff8b5b" 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_6448f8fd-acec-4eb3-a26b-1139bdcde818" xlink:to="loc_ifrs-full_CurrentLiabilities_81a0e004-e537-48bf-a61b-d8ae9bff8b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" 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_feb4b4bc-f62a-4e87-a2eb-cdb884037880" 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_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_feb4b4bc-f62a-4e87-a2eb-cdb884037880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_6cce4ea6-3d93-4eb0-b82a-e40291e735b3" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_CuentasAPagarYOtrosPasivosCorrientes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_6cce4ea6-3d93-4eb0-b82a-e40291e735b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_cf60d881-6d18-49e5-bdc2-d7123e789342" 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_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_cf60d881-6d18-49e5-bdc2-d7123e789342" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_dd80662d-f5f9-4718-b961-393c634e76ad" 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_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_ifrs-full_CurrentProvisions_dd80662d-f5f9-4718-b961-393c634e76ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_54ae438c-dd2f-4fb1-83c9-ba54e43ebb1f" 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_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_54ae438c-dd2f-4fb1-83c9-ba54e43ebb1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_81a1762f-f73f-431c-b403-d6a735aa9d11" 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_f437e0e9-482e-4bb4-bdb7-c8a1650cb325" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_81a1762f-f73f-431c-b403-d6a735aa9d11" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_70b4b206-581f-425a-bc04-e9331ae405d9" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_09117d12-5227-47e5-8e35-2121df24a348" 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_GastoFinancieroNeto_70b4b206-581f-425a-bc04-e9331ae405d9" xlink:to="loc_ifrs-full_FinanceIncome_09117d12-5227-47e5-8e35-2121df24a348" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_6696d6bf-d005-4d08-9f45-47d8638d0a2e" 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_GastoFinancieroNeto_70b4b206-581f-425a-bc04-e9331ae405d9" xlink:to="loc_ifrs-full_NetForeignExchangeGain_6696d6bf-d005-4d08-9f45-47d8638d0a2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_28bfe161-8677-4c36-9f74-97ce703e9fe7" 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_GastoFinancieroNeto_70b4b206-581f-425a-bc04-e9331ae405d9" xlink:to="loc_ifrs-full_FinanceCosts_28bfe161-8677-4c36-9f74-97ce703e9fe7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_4d705d41-d746-46ee-82f4-3f08f52af6c6" 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_GastoFinancieroNeto_70b4b206-581f-425a-bc04-e9331ae405d9" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_4d705d41-d746-46ee-82f4-3f08f52af6c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_e9303c38-5878-454c-a759-fcd926ea55b3" 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_ba85f5dd-e971-4c8e-bca6-8fbd061ab671" 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_e9303c38-5878-454c-a759-fcd926ea55b3" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_ba85f5dd-e971-4c8e-bca6-8fbd061ab671" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_a22dff26-9076-4a5e-8cb9-24572e7c6564" 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_e9303c38-5878-454c-a759-fcd926ea55b3" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_a22dff26-9076-4a5e-8cb9-24572e7c6564" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_d7d6ad9b-3fee-4295-a054-bc0a5b92e814" 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_6af7bc9d-fca1-4056-a6f0-11b209b3b517" 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_d7d6ad9b-3fee-4295-a054-bc0a5b92e814" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_6af7bc9d-fca1-4056-a6f0-11b209b3b517" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_fc0b25a0-4735-4068-8f1f-82ca6daffba2" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_d7d6ad9b-3fee-4295-a054-bc0a5b92e814" xlink:to="loc_tef_GastoFinancieroNeto_fc0b25a0-4735-4068-8f1f-82ca6daffba2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_1a154b6e-2cd0-4937-a2ba-46fed6d2b350" 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_d7d6ad9b-3fee-4295-a054-bc0a5b92e814" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_1a154b6e-2cd0-4937-a2ba-46fed6d2b350" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_0d63fec0-0173-4842-a916-c8d7895a3954" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_0a84e5ff-ab52-4ee0-b664-256703a0bfc3" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_0d63fec0-0173-4842-a916-c8d7895a3954" xlink:to="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_0a84e5ff-ab52-4ee0-b664-256703a0bfc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_0fc44dbd-e223-4229-babd-cee560fd0807" 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_0d63fec0-0173-4842-a916-c8d7895a3954" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_0fc44dbd-e223-4229-babd-cee560fd0807" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_20044f7c-2323-40c0-a0e7-b6146ddd9efa" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_20044f7c-2323-40c0-a0e7-b6146ddd9efa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_b351e8d9-97bb-4e0f-b34f-9f2b00b6a171" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:to="loc_ifrs-full_OtherIncome_b351e8d9-97bb-4e0f-b34f-9f2b00b6a171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_68332730-6a5f-4b73-ad17-9241c171f825" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:to="loc_ifrs-full_OtherExpenseByNature_68332730-6a5f-4b73-ad17-9241c171f825" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_39f5c2d2-1bfa-43a7-861e-ce9b0faa2592" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_39f5c2d2-1bfa-43a7-861e-ce9b0faa2592" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_2eadcf1b-bf2a-42f6-bc3d-26617bd80d47" 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_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_a682ccc0-938d-443f-88d2-109febb50067" xlink:to="loc_ifrs-full_Revenue_2eadcf1b-bf2a-42f6-bc3d-26617bd80d47" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_f4549d97-6935-444d-900a-8ff8cfe875bd" 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_da0f4ea4-2047-4274-92fa-a3aa3d46d130" 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_f4549d97-6935-444d-900a-8ff8cfe875bd" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_da0f4ea4-2047-4274-92fa-a3aa3d46d130" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_b0ff24fe-0a4e-41a9-9a6d-75f83f0017b1" 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_f4549d97-6935-444d-900a-8ff8cfe875bd" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_b0ff24fe-0a4e-41a9-9a6d-75f83f0017b1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_18170b83-3d2f-4cd2-81a6-a1b878e32838" 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_eb8d2a68-e915-4abe-8781-91c3d8731338" 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_18170b83-3d2f-4cd2-81a6-a1b878e32838" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_eb8d2a68-e915-4abe-8781-91c3d8731338" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_e0a494a9-10e5-4dae-97b8-517dc3f864e3" 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_18170b83-3d2f-4cd2-81a6-a1b878e32838" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_e0a494a9-10e5-4dae-97b8-517dc3f864e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d6906dc-7c92-4265-9632-288b352911bf" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_18170b83-3d2f-4cd2-81a6-a1b878e32838" xlink:to="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_2d6906dc-7c92-4265-9632-288b352911bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_b9aac03b-4e1c-4917-920d-88212d3b8727" 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="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_18170b83-3d2f-4cd2-81a6-a1b878e32838" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_b9aac03b-4e1c-4917-920d-88212d3b8727" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_f1f7d39c-7f4d-4f5b-a79c-daf7c52d5625" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_18170b83-3d2f-4cd2-81a6-a1b878e32838" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_f1f7d39c-7f4d-4f5b-a79c-daf7c52d5625" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_446624c5-abdd-48a3-afeb-0c6303c78a84" 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_594e6976-d4a0-4e5f-a8cc-e20d37555999" 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_446624c5-abdd-48a3-afeb-0c6303c78a84" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_594e6976-d4a0-4e5f-a8cc-e20d37555999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_a654408c-65de-4007-a09d-4b07eb72e5bd" 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_446624c5-abdd-48a3-afeb-0c6303c78a84" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_a654408c-65de-4007-a09d-4b07eb72e5bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_ab96e386-e285-4ee5-a772-151531506f74" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_7e1adffa-69d0-4f93-87fd-3d2fe8745b70" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_ab96e386-e285-4ee5-a772-151531506f74" xlink:to="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_7e1adffa-69d0-4f93-87fd-3d2fe8745b70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_9ec5d3c6-413c-423e-901b-6ed6421d688e" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_ab96e386-e285-4ee5-a772-151531506f74" xlink:to="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_9ec5d3c6-413c-423e-901b-6ed6421d688e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_7f0026c9-8128-4975-a945-0384518610a3" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_ab96e386-e285-4ee5-a772-151531506f74" xlink:to="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_7f0026c9-8128-4975-a945-0384518610a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_868b061d-8e2c-47ad-8dc8-434a1bbe4cee" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_ab96e386-e285-4ee5-a772-151531506f74" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_868b061d-8e2c-47ad-8dc8-434a1bbe4cee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_e69177a8-78bb-457c-a92a-0d3fcbeec96f" 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_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_a0433918-6502-419b-a471-1f2e95a41a31" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_e69177a8-78bb-457c-a92a-0d3fcbeec96f" xlink:to="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_a0433918-6502-419b-a471-1f2e95a41a31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_84255a1a-295a-4f97-a59c-022dc7319869" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_e69177a8-78bb-457c-a92a-0d3fcbeec96f" xlink:to="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_84255a1a-295a-4f97-a59c-022dc7319869" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclasificacionRelacionadaConLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_f6e31c01-cbbc-41fd-8265-ae4992637547" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ReclasificacionRelacionadaConLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_e69177a8-78bb-457c-a92a-0d3fcbeec96f" xlink:to="loc_tef_ReclasificacionRelacionadaConLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_f6e31c01-cbbc-41fd-8265-ae4992637547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_712c8b73-8e22-43ea-8e4c-5d9ee451dba9" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_e69177a8-78bb-457c-a92a-0d3fcbeec96f" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_712c8b73-8e22-43ea-8e4c-5d9ee451dba9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_9d665098-ce25-4910-9ba7-0b0b6a3e7c98" 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_734a8e0d-fc7d-4672-a4b2-ccabd9a09a94" 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_9d665098-ce25-4910-9ba7-0b0b6a3e7c98" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_734a8e0d-fc7d-4672-a4b2-ccabd9a09a94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_01469dcb-b74d-4fcb-abda-e9cf7a9a6cb6" 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_9d665098-ce25-4910-9ba7-0b0b6a3e7c98" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_01469dcb-b74d-4fcb-abda-e9cf7a9a6cb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_bf4c59d0-5141-4e27-9a63-d7c04bf92403" 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_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_94c8eda0-4aa2-49cf-94ea-f733ebe9a4e5" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_bf4c59d0-5141-4e27-9a63-d7c04bf92403" xlink:to="loc_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_94c8eda0-4aa2-49cf-94ea-f733ebe9a4e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_9956fa77-f51f-478c-86f8-fef78c6db654" 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_bf4c59d0-5141-4e27-9a63-d7c04bf92403" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_9956fa77-f51f-478c-86f8-fef78c6db654" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_ccc39792-ff15-4f89-bf69-9b4fe4da104f" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_bf4c59d0-5141-4e27-9a63-d7c04bf92403" xlink:to="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_ccc39792-ff15-4f89-bf69-9b4fe4da104f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_3e6c8c07-b85a-47ea-8347-5ef8ae05c0ac" 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_1ae74c12-a27d-4831-8ff1-c6d92a6eb520" 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_3e6c8c07-b85a-47ea-8347-5ef8ae05c0ac" xlink:to="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_1ae74c12-a27d-4831-8ff1-c6d92a6eb520" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasRelativoAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_d3529012-6ab2-4f45-a7d9-44c52c71becf" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_EfectoImpositivoSobreLasGananciasPerdidasRelativoAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_3e6c8c07-b85a-47ea-8347-5ef8ae05c0ac" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasRelativoAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_d3529012-6ab2-4f45-a7d9-44c52c71becf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_74a8a100-9646-4bb6-9f07-b4f890660669" 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_3e6c8c07-b85a-47ea-8347-5ef8ae05c0ac" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_74a8a100-9646-4bb6-9f07-b4f890660669" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoPorLaReclasificacionRelativosAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_e339048a-82b7-45f2-922e-8d8202703ecc" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_EfectoImpositivoPorLaReclasificacionRelativosAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_3e6c8c07-b85a-47ea-8347-5ef8ae05c0ac" xlink:to="loc_tef_EfectoImpositivoPorLaReclasificacionRelativosAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_e339048a-82b7-45f2-922e-8d8202703ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_2ad07908-2fda-4e09-95fa-c997f5a8f714" 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_57a808ab-cafe-42d8-a4e4-3899ed061f49" 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_2ad07908-2fda-4e09-95fa-c997f5a8f714" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_57a808ab-cafe-42d8-a4e4-3899ed061f49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d27559fb-9bce-472f-bf74-2561bed8b611" 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_2ad07908-2fda-4e09-95fa-c997f5a8f714" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_d27559fb-9bce-472f-bf74-2561bed8b611" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_ef404fc8-013d-4532-b999-43308cfa1680" 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_a9233c57-71f0-4412-b8fb-5f7d5b2adc36" 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_ef404fc8-013d-4532-b999-43308cfa1680" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_a9233c57-71f0-4412-b8fb-5f7d5b2adc36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_c962e8fe-b2cc-48de-bbb1-7f1058fcbafc" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_ef404fc8-013d-4532-b999-43308cfa1680" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_c962e8fe-b2cc-48de-bbb1-7f1058fcbafc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_d6a70417-c899-4d09-8abb-179b9927e970" 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_ef404fc8-013d-4532-b999-43308cfa1680" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_d6a70417-c899-4d09-8abb-179b9927e970" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_685897fa-f9d4-45ca-8d65-ed2d4f65c65e" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_ef404fc8-013d-4532-b999-43308cfa1680" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_685897fa-f9d4-45ca-8d65-ed2d4f65c65e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdecambiosenelpatrimonionetoconsolidadodelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Estadosdecambiosenelpatrimonionetoconsolidadodelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosdecambiosenelpatrimonionetoconsolidadodelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_26834d13-3d13-43b6-af17-8e612f57a092" 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_1aa30708-0f32-4d89-91a5-9e6d1a90b9f6" 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_26834d13-3d13-43b6-af17-8e612f57a092" xlink:to="loc_ifrs-full_Cash_1aa30708-0f32-4d89-91a5-9e6d1a90b9f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_9aaeb329-fc94-4783-8cb5-8aebbc432105" 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_26834d13-3d13-43b6-af17-8e612f57a092" xlink:to="loc_ifrs-full_CashEquivalents_9aaeb329-fc94-4783-8cb5-8aebbc432105" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a2556ecd-3bbb-44d4-97f5-0246a99c4fda" 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_FlujosDeEfectivoDeLasOperaciones_b05dde90-d73a-46a8-b67e-0a6ac59a67bc" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_FlujosDeEfectivoDeLasOperaciones"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a2556ecd-3bbb-44d4-97f5-0246a99c4fda" xlink:to="loc_tef_FlujosDeEfectivoDeLasOperaciones_b05dde90-d73a-46a8-b67e-0a6ac59a67bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_103de374-1856-40be-a4fc-a89b4818c2d7" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_FlujosDeEfectivoUtilizadosEnOperaciones"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a2556ecd-3bbb-44d4-97f5-0246a99c4fda" xlink:to="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_103de374-1856-40be-a4fc-a89b4818c2d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_455bcc3a-55f0-4d5a-b97c-9af0cf7072f3" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a2556ecd-3bbb-44d4-97f5-0246a99c4fda" xlink:to="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_455bcc3a-55f0-4d5a-b97c-9af0cf7072f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_049bae46-aa0c-4c1b-8202-f70235822c95" 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_a2556ecd-3bbb-44d4-97f5-0246a99c4fda" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_049bae46-aa0c-4c1b-8202-f70235822c95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" 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_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_b1fb9f52-b9ed-414e-8ae3-09e4a04c30f9" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_b1fb9f52-b9ed-414e-8ae3-09e4a04c30f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_3e5f2a44-0bd4-497b-838c-319c2973bc65" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_3e5f2a44-0bd4-497b-838c-319c2973bc65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_f4506f91-25ad-41f2-938a-dc44c6dfb692" 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="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_f4506f91-25ad-41f2-938a-dc44c6dfb692" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_b3cd62da-cbf8-4332-87e8-bbb99b51d2d9" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_b3cd62da-cbf8-4332-87e8-bbb99b51d2d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_865d8c7f-1267-4dc1-ae1d-724202e2dbc6" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_865d8c7f-1267-4dc1-ae1d-724202e2dbc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_ab67c9cc-776b-4115-aa1c-4c48cfb5155f" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_ab67c9cc-776b-4115-aa1c-4c48cfb5155f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities_8269e753-ce09-4831-a5c1-74b42b4929af" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_634d9cec-45ed-499e-83f0-80c5f703f15c" xlink:to="loc_ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities_8269e753-ce09-4831-a5c1-74b42b4929af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_812b9950-0495-428b-854f-47197e1dff93" 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_6345a04f-217a-4b9f-860a-91e9a4a240fe" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_6345a04f-217a-4b9f-860a-91e9a4a240fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_7ef2f1c2-cfbf-44ca-bd66-444fe4ca00c8" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_7ef2f1c2-cfbf-44ca-bd66-444fe4ca00c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_5db4dbc4-8634-4423-89ae-9e3d10bb07c4" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_5db4dbc4-8634-4423-89ae-9e3d10bb07c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_fe3c1723-5b62-4a2a-8f77-044f138ee051" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_fe3c1723-5b62-4a2a-8f77-044f138ee051" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_2fa5e5f4-3558-427c-8b3a-27ce6043fa53" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_2fa5e5f4-3558-427c-8b3a-27ce6043fa53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_5e691624-c2a1-404c-9d91-8ad1cf37b441" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_5e691624-c2a1-404c-9d91-8ad1cf37b441" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_97aee148-09db-4e29-94ab-46afcdf9f814" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_97aee148-09db-4e29-94ab-46afcdf9f814" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_e51a6134-1bd2-4388-a44a-9571edb9e424" 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_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_e51a6134-1bd2-4388-a44a-9571edb9e424" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_ceb38ba4-619a-453e-9c16-fffd37492db8" xlink:href="549300EEJH4FEPDBBR25-2020-12-31.xsd#tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_ceb38ba4-619a-453e-9c16-fffd37492db8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_179fb336-30ba-49f7-a37d-8219090b3fd7" 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="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_812b9950-0495-428b-854f-47197e1dff93" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_179fb336-30ba-49f7-a37d-8219090b3fd7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
