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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:de1aa3d8-9129-4a5d-a2f6-bf3156eb9374,g:d295ee4a-067a-4d30-bdb9-2f87141c8a05-->
<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/Estadosdesituacinfinancieraconsolidadosal31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_eb9e1ac0-0976-44e2-b0fd-bda2d6f39d3b" 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_6562c4a7-00d6-4104-a230-dc9e3184eaba" 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_eb9e1ac0-0976-44e2-b0fd-bda2d6f39d3b" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_6562c4a7-00d6-4104-a230-dc9e3184eaba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_0d92e3ce-f0cc-4056-8fcf-0ac010d31faa" 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_eb9e1ac0-0976-44e2-b0fd-bda2d6f39d3b" xlink:to="loc_ifrs-full_NoncontrollingInterests_0d92e3ce-f0cc-4056-8fcf-0ac010d31faa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_4a8ac091-8928-4d37-a91e-2554cf603282" 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_655bfaf8-7242-4d08-846c-bf98870978bd" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_655bfaf8-7242-4d08-846c-bf98870978bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_d75eeed7-b68d-4104-ac97-8efc315c06fa" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_Goodwill_d75eeed7-b68d-4104-ac97-8efc315c06fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_7d70b140-b252-4221-a1c6-5d1eaf40d3da" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_7d70b140-b252-4221-a1c6-5d1eaf40d3da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_a11896b3-7e72-4477-b5fe-cc51e7751576" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_a11896b3-7e72-4477-b5fe-cc51e7751576" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_2a2269bc-309a-48dc-8ac9-e233a2c04e0b" xlink:href="549300EEJH4FEPDBBR25-2021-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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_2a2269bc-309a-48dc-8ac9-e233a2c04e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_b437a1c4-d0a9-4cbd-ab2d-7f1156c412ec" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_DeferredTaxAssets_b437a1c4-d0a9-4cbd-ab2d-7f1156c412ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_32e481e9-5d31-4707-ac13-5fb48e9edaca" 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_4a8ac091-8928-4d37-a91e-2554cf603282" xlink:to="loc_ifrs-full_RightofuseAssets_32e481e9-5d31-4707-ac13-5fb48e9edaca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_e32b05e9-f769-49ba-a6ce-954f8eb3724e" 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_5ce00d50-cb43-495d-b92b-7b059e712d5e" 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_e32b05e9-f769-49ba-a6ce-954f8eb3724e" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_5ce00d50-cb43-495d-b92b-7b059e712d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_314b083e-e9d6-47e7-9024-d1e5e6e9f4b8" xlink:href="549300EEJH4FEPDBBR25-2021-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_e32b05e9-f769-49ba-a6ce-954f8eb3724e" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_314b083e-e9d6-47e7-9024-d1e5e6e9f4b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_83afd627-bbeb-4ee3-8032-45b3ee194e86" 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_e32b05e9-f769-49ba-a6ce-954f8eb3724e" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_83afd627-bbeb-4ee3-8032-45b3ee194e86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_01343d33-db8c-42c0-80b6-4cf50f04f3a6" 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_e32b05e9-f769-49ba-a6ce-954f8eb3724e" xlink:to="loc_ifrs-full_NoncurrentProvisions_01343d33-db8c-42c0-80b6-4cf50f04f3a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_0cebd356-4133-4a9b-9498-37051e0cdacf" 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_e32b05e9-f769-49ba-a6ce-954f8eb3724e" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_0cebd356-4133-4a9b-9498-37051e0cdacf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_4a637c89-bed6-4772-a58d-f9f535f7da03" 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_1d70664d-f861-43ed-aa6a-98734c97ee80" 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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_1d70664d-f861-43ed-aa6a-98734c97ee80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_01987cff-f471-4e30-9cf1-498de581cb03" xlink:href="549300EEJH4FEPDBBR25-2021-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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_01987cff-f471-4e30-9cf1-498de581cb03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_3c8d43c4-d872-4c22-8812-79891d74a971" 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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_3c8d43c4-d872-4c22-8812-79891d74a971" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_09c68d05-2435-4105-9580-e8d9904498b2" 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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_ifrs-full_CurrentProvisions_09c68d05-2435-4105-9580-e8d9904498b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_e26f55ae-c676-49b1-8c62-13bbe771978a" 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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_e26f55ae-c676-49b1-8c62-13bbe771978a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_9e83177e-6ac3-489f-80e2-85ea3e779de6" 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_4a637c89-bed6-4772-a58d-f9f535f7da03" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_9e83177e-6ac3-489f-80e2-85ea3e779de6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_c8725c5d-2a5a-4853-b914-df37cea200b8" 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_637ff576-54e6-481a-b83f-cb63e658c145" 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_c8725c5d-2a5a-4853-b914-df37cea200b8" xlink:to="loc_ifrs-full_Equity_637ff576-54e6-481a-b83f-cb63e658c145" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_d93e4669-5efd-4915-9d7a-8e3393d2c0cd" 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_c8725c5d-2a5a-4853-b914-df37cea200b8" xlink:to="loc_ifrs-full_NoncurrentLiabilities_d93e4669-5efd-4915-9d7a-8e3393d2c0cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_87783df8-b8d2-4faa-b709-d8850fb24ab4" 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_c8725c5d-2a5a-4853-b914-df37cea200b8" xlink:to="loc_ifrs-full_CurrentLiabilities_87783df8-b8d2-4faa-b709-d8850fb24ab4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_097cd51c-53a9-41ee-ac27-90aa378e501b" 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_b7585265-eb3f-4559-9c44-d1fc3c7277d5" 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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_ifrs-full_Inventories_b7585265-eb3f-4559-9c44-d1fc3c7277d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_548c7c5c-549f-4c7d-b3e7-ccb286701352" xlink:href="549300EEJH4FEPDBBR25-2021-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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_548c7c5c-549f-4c7d-b3e7-ccb286701352" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_1863d203-b901-4412-8818-2562d1818f65" 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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_1863d203-b901-4412-8818-2562d1818f65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_365409c8-d12c-414a-8a8e-b23a977aca85" 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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_ifrs-full_CurrentFinancialAssets_365409c8-d12c-414a-8a8e-b23a977aca85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_ce2cb324-cf73-4f06-83b5-0e62f6a41ff2" 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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_ifrs-full_CashAndCashEquivalents_ce2cb324-cf73-4f06-83b5-0e62f6a41ff2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_6d3f6cdd-18fd-4c03-89d5-ee0080eacddd" 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_097cd51c-53a9-41ee-ac27-90aa378e501b" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_6d3f6cdd-18fd-4c03-89d5-ee0080eacddd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_01c4efef-02e9-45b7-8718-0a414a22c3e5" 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_cbbf22f2-0923-4b48-a2da-35d1ca54f31f" 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_01c4efef-02e9-45b7-8718-0a414a22c3e5" xlink:to="loc_ifrs-full_NoncurrentAssets_cbbf22f2-0923-4b48-a2da-35d1ca54f31f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_338a0aae-cc36-49f9-8437-ccdc576b84f6" 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_01c4efef-02e9-45b7-8718-0a414a22c3e5" xlink:to="loc_ifrs-full_CurrentAssets_338a0aae-cc36-49f9-8437-ccdc576b84f6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_ifrs-full_ProfitLoss_256b5cd0-be89-43c1-ab28-e57669982609" 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_fafd7fa8-7bb5-47a4-a66c-886a2d6c88ca" 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_256b5cd0-be89-43c1-ab28-e57669982609" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_fafd7fa8-7bb5-47a4-a66c-886a2d6c88ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_709b2f69-e372-4919-980d-f2c3152650b8" 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_256b5cd0-be89-43c1-ab28-e57669982609" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_709b2f69-e372-4919-980d-f2c3152650b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_6ab0058e-b716-45c4-bd16-4246594275a5" 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_4de5f03d-465a-4af3-a0b8-a5a5ca453569" xlink:href="549300EEJH4FEPDBBR25-2021-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_6ab0058e-b716-45c4-bd16-4246594275a5" xlink:to="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_4de5f03d-465a-4af3-a0b8-a5a5ca453569" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_b1d3b861-2ef0-43ee-a8ac-b5a2c7379908" 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_6ab0058e-b716-45c4-bd16-4246594275a5" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_b1d3b861-2ef0-43ee-a8ac-b5a2c7379908" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_e2132abd-0a06-4f33-9e34-7e1747d83088" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_7901311a-7592-4031-836e-aa8206d87aa9" 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_e2132abd-0a06-4f33-9e34-7e1747d83088" xlink:to="loc_ifrs-full_FinanceIncome_7901311a-7592-4031-836e-aa8206d87aa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_f2f2d97d-d50b-4e0e-aed1-4970db85782e" 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_e2132abd-0a06-4f33-9e34-7e1747d83088" xlink:to="loc_ifrs-full_NetForeignExchangeGain_f2f2d97d-d50b-4e0e-aed1-4970db85782e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_60b081f7-b510-421b-ba51-cfdd3a151ac5" 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_e2132abd-0a06-4f33-9e34-7e1747d83088" xlink:to="loc_ifrs-full_FinanceCosts_60b081f7-b510-421b-ba51-cfdd3a151ac5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_324895fa-b195-4bb1-964a-942c514a311c" 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_e2132abd-0a06-4f33-9e34-7e1747d83088" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_324895fa-b195-4bb1-964a-942c514a311c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_60faa084-b8e9-4c26-8d86-03700e51b66e" 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_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_60faa084-b8e9-4c26-8d86-03700e51b66e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_88185bb1-a0a9-4b84-bc84-378fe057a9a9" 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_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:to="loc_ifrs-full_OtherIncome_88185bb1-a0a9-4b84-bc84-378fe057a9a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_0889bfe8-b416-48ac-8ffa-b3e48b97057e" 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_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:to="loc_ifrs-full_OtherExpenseByNature_0889bfe8-b416-48ac-8ffa-b3e48b97057e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_9f0ab935-34f1-4d26-9078-be9b662cc955" 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_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_9f0ab935-34f1-4d26-9078-be9b662cc955" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_a47e4e7f-d5c4-40bc-bc63-8cd41f6757d2" 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_59fcfa5f-bea4-48eb-b3f2-63bc6cd3cc1e" xlink:to="loc_ifrs-full_Revenue_a47e4e7f-d5c4-40bc-bc63-8cd41f6757d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_fa846932-4b0c-4ed4-bf60-ca62713d77e8" 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_a75e5d64-80c4-476e-8127-73b5eb3fd8e2" 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_fa846932-4b0c-4ed4-bf60-ca62713d77e8" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_a75e5d64-80c4-476e-8127-73b5eb3fd8e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_d9cb5b42-df5d-4c85-8c5f-8a5472022ab5" xlink:href="549300EEJH4FEPDBBR25-2021-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_fa846932-4b0c-4ed4-bf60-ca62713d77e8" xlink:to="loc_tef_GastoFinancieroNeto_d9cb5b42-df5d-4c85-8c5f-8a5472022ab5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_4474a192-c5c0-47bb-b5d7-c190d55dd207" 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_fa846932-4b0c-4ed4-bf60-ca62713d77e8" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_4474a192-c5c0-47bb-b5d7-c190d55dd207" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_b493b5c7-298a-4488-9697-143b4e3f25da" 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_3c9bec50-fe29-47ff-adb9-cfa73e8c4544" 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_b493b5c7-298a-4488-9697-143b4e3f25da" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_3c9bec50-fe29-47ff-adb9-cfa73e8c4544" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_789c52fa-82b9-422b-a0d1-c22746db869b" 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_b493b5c7-298a-4488-9697-143b4e3f25da" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_789c52fa-82b9-422b-a0d1-c22746db869b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_4350dc8c-0ab3-4297-a0f6-109ff7e565c5" 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_0d53a6de-3ea7-44b5-87ae-3ed112b19a25" xlink:href="549300EEJH4FEPDBBR25-2021-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_4350dc8c-0ab3-4297-a0f6-109ff7e565c5" xlink:to="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_0d53a6de-3ea7-44b5-87ae-3ed112b19a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_bd2e6116-4ddd-41f8-a4c4-ec854a476253" xlink:href="549300EEJH4FEPDBBR25-2021-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_4350dc8c-0ab3-4297-a0f6-109ff7e565c5" xlink:to="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_bd2e6116-4ddd-41f8-a4c4-ec854a476253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclasificacionRelacionadaConLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_4ff59bd3-e740-46aa-b334-a51d44649402" xlink:href="549300EEJH4FEPDBBR25-2021-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_4350dc8c-0ab3-4297-a0f6-109ff7e565c5" xlink:to="loc_tef_ReclasificacionRelacionadaConLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_4ff59bd3-e740-46aa-b334-a51d44649402" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_d0e30822-4ba0-47dc-b7fe-21e30607229c" xlink:href="549300EEJH4FEPDBBR25-2021-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_4350dc8c-0ab3-4297-a0f6-109ff7e565c5" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeLaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_d0e30822-4ba0-47dc-b7fe-21e30607229c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_58963522-75a0-487a-aad6-fbab97d7f9b1" 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_e396ecfc-7ae8-4e76-8b3c-c5534860277a" 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_58963522-75a0-487a-aad6-fbab97d7f9b1" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_e396ecfc-7ae8-4e76-8b3c-c5534860277a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_fb29e00d-7326-4ed8-a4e4-128581b2833f" 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_58963522-75a0-487a-aad6-fbab97d7f9b1" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_fb29e00d-7326-4ed8-a4e4-128581b2833f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_249c293f-7fe5-4b02-ace2-eb5cde62bfcf" 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_de414cb7-ecf8-4423-b7a7-8414e1b70fd9" 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_249c293f-7fe5-4b02-ace2-eb5cde62bfcf" xlink:to="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_de414cb7-ecf8-4423-b7a7-8414e1b70fd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasRelativoAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_9e8f8401-39e9-4c1e-a372-72f856d5b08b" xlink:href="549300EEJH4FEPDBBR25-2021-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_249c293f-7fe5-4b02-ace2-eb5cde62bfcf" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasRelativoAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_9e8f8401-39e9-4c1e-a372-72f856d5b08b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_c005c420-9503-40b7-89de-0ae78af0c4c2" 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_249c293f-7fe5-4b02-ace2-eb5cde62bfcf" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_c005c420-9503-40b7-89de-0ae78af0c4c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoPorLaReclasificacionRelativosAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_4e5e992f-565d-4927-bc02-8877643c7a38" xlink:href="549300EEJH4FEPDBBR25-2021-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_249c293f-7fe5-4b02-ace2-eb5cde62bfcf" xlink:to="loc_tef_EfectoImpositivoPorLaReclasificacionRelativosAActivosFinancierosMantenidosParaLaVentaAntesDeImpuestos_4e5e992f-565d-4927-bc02-8877643c7a38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_3fbf955a-85a7-48d9-a5df-32b5a67a767e" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_24df8210-e79e-48d4-9607-f2f6e59edb96" xlink:href="549300EEJH4FEPDBBR25-2021-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_3fbf955a-85a7-48d9-a5df-32b5a67a767e" xlink:to="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_24df8210-e79e-48d4-9607-f2f6e59edb96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_5355a00f-b83c-494f-b97a-e582e2f09a10" xlink:href="549300EEJH4FEPDBBR25-2021-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_3fbf955a-85a7-48d9-a5df-32b5a67a767e" xlink:to="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_5355a00f-b83c-494f-b97a-e582e2f09a10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_f7b6fe45-6155-45ae-96a6-d3f219c9722f" xlink:href="549300EEJH4FEPDBBR25-2021-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_3fbf955a-85a7-48d9-a5df-32b5a67a767e" xlink:to="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_f7b6fe45-6155-45ae-96a6-d3f219c9722f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_974489a3-f063-4da8-a72b-8568ca6ccc8e" xlink:href="549300EEJH4FEPDBBR25-2021-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_3fbf955a-85a7-48d9-a5df-32b5a67a767e" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_974489a3-f063-4da8-a72b-8568ca6ccc8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6d57d10f-9cc0-4482-b3d0-afc84143a3af" 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_434eca9c-7710-4ea2-a59f-11394cdfa2cb" 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_6d57d10f-9cc0-4482-b3d0-afc84143a3af" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_434eca9c-7710-4ea2-a59f-11394cdfa2cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_a5cba8e7-7576-412d-9453-dc9d687fa038" 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_6d57d10f-9cc0-4482-b3d0-afc84143a3af" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_a5cba8e7-7576-412d-9453-dc9d687fa038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_6bf216d8-73d2-4de6-902a-6f448dba182a" 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_5b653800-0bb6-47fd-906b-9cb9ea0c905f" xlink:href="549300EEJH4FEPDBBR25-2021-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_6bf216d8-73d2-4de6-902a-6f448dba182a" xlink:to="loc_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_5b653800-0bb6-47fd-906b-9cb9ea0c905f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_f3da29b4-3a77-4a14-879c-7c019d3711c1" 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_6bf216d8-73d2-4de6-902a-6f448dba182a" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_f3da29b4-3a77-4a14-879c-7c019d3711c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_66752404-aee1-4d62-a4e8-83813df47f62" xlink:href="549300EEJH4FEPDBBR25-2021-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_6bf216d8-73d2-4de6-902a-6f448dba182a" xlink:to="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_66752404-aee1-4d62-a4e8-83813df47f62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_47497504-6662-43dd-b5a0-1cb5588a038a" 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_1b14e890-d026-46ce-9b6b-de04959dfe43" 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_47497504-6662-43dd-b5a0-1cb5588a038a" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_1b14e890-d026-46ce-9b6b-de04959dfe43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_1c2fc7f8-77b0-4b85-a8ad-77c103cca352" xlink:href="549300EEJH4FEPDBBR25-2021-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_47497504-6662-43dd-b5a0-1cb5588a038a" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_1c2fc7f8-77b0-4b85-a8ad-77c103cca352" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_5a6393da-a88f-4252-bd9a-2d80a6b31481" 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_47497504-6662-43dd-b5a0-1cb5588a038a" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_5a6393da-a88f-4252-bd9a-2d80a6b31481" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_391e16e5-c108-4a02-aa7d-aeb3cc75fb4d" xlink:href="549300EEJH4FEPDBBR25-2021-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_47497504-6662-43dd-b5a0-1cb5588a038a" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_391e16e5-c108-4a02-aa7d-aeb3cc75fb4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" 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_1fa15a52-7a4a-4f2b-9d8b-a0ed66dcaf48" 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_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_1fa15a52-7a4a-4f2b-9d8b-a0ed66dcaf48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_1d4e77f5-2bb1-4d0f-b578-4070239333e0" 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_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_1d4e77f5-2bb1-4d0f-b578-4070239333e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_c3f5afa7-fc12-4dd3-a817-b5c876f8c3e6" xlink:href="549300EEJH4FEPDBBR25-2021-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_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" xlink:to="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_c3f5afa7-fc12-4dd3-a817-b5c876f8c3e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_9a30f8a6-55c5-45eb-8a9c-1fe955dd9c8e" 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_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_9a30f8a6-55c5-45eb-8a9c-1fe955dd9c8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_c2b040c1-5449-4c2d-9ceb-d826ee684c84" 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_5aae38ea-0e64-44e9-aedf-54eb7fa4e628" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_c2b040c1-5449-4c2d-9ceb-d826ee684c84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_f6f6aaa7-6bfb-4526-a7bb-a1b7919f37b6" 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_5f000f8c-96ce-4ce7-b00a-7c5e6aa5ec66" 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_f6f6aaa7-6bfb-4526-a7bb-a1b7919f37b6" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_5f000f8c-96ce-4ce7-b00a-7c5e6aa5ec66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_b71e4781-8110-4517-8b27-2b6c47e56974" 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_f6f6aaa7-6bfb-4526-a7bb-a1b7919f37b6" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_b71e4781-8110-4517-8b27-2b6c47e56974" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1"/>
  <link:calculationLink xlink:role="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_be2a2fb6-7505-424a-b094-f28220c4fdfb" 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_3e041eb5-664f-4a6a-af22-d8c64d81b80e" 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_be2a2fb6-7505-424a-b094-f28220c4fdfb" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_3e041eb5-664f-4a6a-af22-d8c64d81b80e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_4ed93399-f7d9-41d5-943d-69cd72c32853" 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_be2a2fb6-7505-424a-b094-f28220c4fdfb" xlink:to="loc_ifrs-full_ProfitLoss_4ed93399-f7d9-41d5-943d-69cd72c32853" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-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_CashFlowsFromUsedInOperatingActivities_1db24ae2-e6d6-467b-bfc9-b8f7cf137832" 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_73b9cca6-27f1-42fe-b351-9551059252cc" xlink:href="549300EEJH4FEPDBBR25-2021-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_1db24ae2-e6d6-467b-bfc9-b8f7cf137832" xlink:to="loc_tef_FlujosDeEfectivoDeLasOperaciones_73b9cca6-27f1-42fe-b351-9551059252cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_d650a64c-6edf-47ee-b827-5132b7a9ff70" xlink:href="549300EEJH4FEPDBBR25-2021-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_1db24ae2-e6d6-467b-bfc9-b8f7cf137832" xlink:to="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_d650a64c-6edf-47ee-b827-5132b7a9ff70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_1b22edfd-ac68-4aef-93bf-7901fae00c3f" xlink:href="549300EEJH4FEPDBBR25-2021-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_1db24ae2-e6d6-467b-bfc9-b8f7cf137832" xlink:to="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_1b22edfd-ac68-4aef-93bf-7901fae00c3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_46e6e7c8-8b80-4f1e-af0c-866533ae9a42" 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_1db24ae2-e6d6-467b-bfc9-b8f7cf137832" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_46e6e7c8-8b80-4f1e-af0c-866533ae9a42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" 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_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_5ace4486-3b96-4d8c-8ade-7c05c3984f09" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_5ace4486-3b96-4d8c-8ade-7c05c3984f09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_b2e688ca-588d-4734-aad0-07fb3fe457f9" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_b2e688ca-588d-4734-aad0-07fb3fe457f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_4c9122a3-536b-4b5a-b85b-4929145bce28" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_4c9122a3-536b-4b5a-b85b-4929145bce28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_db4b61f6-b84e-44e8-b645-ed5db90e1e81" 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="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_db4b61f6-b84e-44e8-b645-ed5db90e1e81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_eccfcc04-9b9a-423c-8f74-78a4a180814a" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_eccfcc04-9b9a-423c-8f74-78a4a180814a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_fd75315b-1209-4163-8fee-0a260180bd05" 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="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fbf41d92-0b5f-4255-b9b4-58ade461ba4c" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_fd75315b-1209-4163-8fee-0a260180bd05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_99e4b645-271f-40d3-989d-2331dc364d5f" 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_36618ee5-a1b4-44a0-91c4-997352ceaff7" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_36618ee5-a1b4-44a0-91c4-997352ceaff7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_b0c4d095-db88-474f-aff3-3fcc4b3259bc" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_b0c4d095-db88-474f-aff3-3fcc4b3259bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_f1f0647f-94c3-4c89-9151-b0c502d151ff" xlink:href="549300EEJH4FEPDBBR25-2021-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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_f1f0647f-94c3-4c89-9151-b0c502d151ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_8bdf8caf-5f81-420b-b941-9ec84607e9d2" xlink:href="549300EEJH4FEPDBBR25-2021-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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_8bdf8caf-5f81-420b-b941-9ec84607e9d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_bdf68121-3eb0-4a62-8e80-59b435ea9f1a" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_bdf68121-3eb0-4a62-8e80-59b435ea9f1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_c7a4d135-c428-41d9-a605-4b87286d2a16" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_c7a4d135-c428-41d9-a605-4b87286d2a16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_13c74893-43fc-4872-a740-d984ad68b0ca" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_13c74893-43fc-4872-a740-d984ad68b0ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_12591dd4-5ebb-4a7c-a345-ea1c3a4953ea" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_12591dd4-5ebb-4a7c-a345-ea1c3a4953ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_ae45ac95-42ef-4588-91c9-596ce9d5fa2a" xlink:href="549300EEJH4FEPDBBR25-2021-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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_ae45ac95-42ef-4588-91c9-596ce9d5fa2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_93cb6cf4-cbf5-44ca-9aa0-9bded6bf5146" 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_99e4b645-271f-40d3-989d-2331dc364d5f" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_93cb6cf4-cbf5-44ca-9aa0-9bded6bf5146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_10b40154-3ee9-4974-a066-9a74c06e3cc2" 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_14f6857e-4f74-4d78-ac65-3773fc2db19d" 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_10b40154-3ee9-4974-a066-9a74c06e3cc2" xlink:to="loc_ifrs-full_Cash_14f6857e-4f74-4d78-ac65-3773fc2db19d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_75bd0e9b-a6f3-49b7-921c-a07fd527f7cc" 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_10b40154-3ee9-4974-a066-9a74c06e3cc2" xlink:to="loc_ifrs-full_CashEquivalents_75bd0e9b-a6f3-49b7-921c-a07fd527f7cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" 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_EffectOfExchangeRateChangesOnCashAndCashEquivalents_a43bf87a-f29f-4f65-b2e9-5ae6a7ef6f65" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_a43bf87a-f29f-4f65-b2e9-5ae6a7ef6f65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_717ec898-0d5c-4245-b0db-a5ccbcaad63b" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_717ec898-0d5c-4245-b0db-a5ccbcaad63b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_f6ec466d-f0be-49ac-b929-0926b6b49e46" 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_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_f6ec466d-f0be-49ac-b929-0926b6b49e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_b4637f69-9693-44d7-9dcb-6ba5cc058a03" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_b4637f69-9693-44d7-9dcb-6ba5cc058a03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_99d5d7f8-ee37-4e5b-8d18-94edb4fdb6ff" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_99d5d7f8-ee37-4e5b-8d18-94edb4fdb6ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_7af3a7f8-f237-4993-82e2-fde963f9a774" 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="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_1af2c544-41d3-426b-a927-adafaf02245c" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_7af3a7f8-f237-4993-82e2-fde963f9a774" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
