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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:4e684d43-794f-4809-9e5e-65053fdb7808,g:3d5d7ae7-243a-44cb-8cdd-f53333f76a10-->
<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-2022-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_EquityAndLiabilities_703cf61e-4d5a-47a2-949b-bf60b4e39301" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_6c5f0aa8-e4e0-4658-a01e-bcfc197800b8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Equity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_703cf61e-4d5a-47a2-949b-bf60b4e39301" xlink:to="loc_ifrs-full_Equity_6c5f0aa8-e4e0-4658-a01e-bcfc197800b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_8b996499-ac8a-4c59-84e3-b719c26c22a9" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_703cf61e-4d5a-47a2-949b-bf60b4e39301" xlink:to="loc_ifrs-full_NoncurrentLiabilities_8b996499-ac8a-4c59-84e3-b719c26c22a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_c8dfd233-b46e-452a-a429-a33873f4976c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_703cf61e-4d5a-47a2-949b-bf60b4e39301" xlink:to="loc_ifrs-full_CurrentLiabilities_c8dfd233-b46e-452a-a429-a33873f4976c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_08738924-1b16-4e9b-be1f-a7b2542bf7d1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_f93ab887-fa1c-4655-be03-b461421d835c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_08738924-1b16-4e9b-be1f-a7b2542bf7d1" xlink:to="loc_ifrs-full_NoncurrentAssets_f93ab887-fa1c-4655-be03-b461421d835c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_f9ecdb88-ac01-477a-b50d-798315d9cdfd" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_08738924-1b16-4e9b-be1f-a7b2542bf7d1" xlink:to="loc_ifrs-full_CurrentAssets_f9ecdb88-ac01-477a-b50d-798315d9cdfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_474d5144-06cc-40bd-a240-6941a72c9bf9" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Inventories"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_ifrs-full_Inventories_474d5144-06cc-40bd-a240-6941a72c9bf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_e9ce7c3e-7935-42df-9bec-57ec9e57db06" xlink:href="549300EEJH4FEPDBBR25-2022-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_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_tef_CuentasPorCobrarYOtrosActivosCorrientes_e9ce7c3e-7935-42df-9bec-57ec9e57db06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_cd56ac66-fab1-4c9c-ae9f-d5b0ae715cf5" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentTaxAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_cd56ac66-fab1-4c9c-ae9f-d5b0ae715cf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_ba1d680f-3e72-4953-b812-7c799b05db81" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentFinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_ifrs-full_CurrentFinancialAssets_ba1d680f-3e72-4953-b812-7c799b05db81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_ff141a9c-cc3c-49cb-8ac4-2689dbcb0ef8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_ifrs-full_CashAndCashEquivalents_ff141a9c-cc3c-49cb-8ac4-2689dbcb0ef8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_0d0c1e3c-7b83-43ef-b1ff-350fc98bc7cc" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_f3d707a0-826c-4739-8bd4-b6e1d5190af5" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_0d0c1e3c-7b83-43ef-b1ff-350fc98bc7cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_1279a8f6-ce22-483d-9387-90b0a4b01dd6" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentFinancialLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_1279a8f6-ce22-483d-9387-90b0a4b01dd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_f9c48710-ef32-4ac0-b7e5-c9cce4bc269c" xlink:href="549300EEJH4FEPDBBR25-2022-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_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosCorrientes_f9c48710-ef32-4ac0-b7e5-c9cce4bc269c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_3adf4bde-61d4-48b4-9934-49dee383b3b8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_3adf4bde-61d4-48b4-9934-49dee383b3b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_78447505-7116-4ed3-9e3a-e32a833a1344" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentProvisions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_ifrs-full_CurrentProvisions_78447505-7116-4ed3-9e3a-e32a833a1344" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_5753d5ae-a260-4418-8f8a-99186a46204e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_5753d5ae-a260-4418-8f8a-99186a46204e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_fb10dafd-7c4e-42e5-9481-239eaa48f42f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CurrentLeaseLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_42a7a632-8af7-4726-97cc-653e5777db86" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_fb10dafd-7c4e-42e5-9481-239eaa48f42f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_efa9948f-57b7-473f-a5e7-6f5187e30072" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentFinancialLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_efa9948f-57b7-473f-a5e7-6f5187e30072" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_1ef81df2-0434-4896-8595-341558e4bbfc" xlink:href="549300EEJH4FEPDBBR25-2022-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_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:to="loc_tef_CuentasAPagarYOtrosPasivosNoCorrientes_1ef81df2-0434-4896-8595-341558e4bbfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_82ae3557-a70a-450b-8009-efbc16f0a112" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_DeferredTaxLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_82ae3557-a70a-450b-8009-efbc16f0a112" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_6366c431-1979-46a3-a206-91e0507cb361" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentProvisions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:to="loc_ifrs-full_NoncurrentProvisions_6366c431-1979-46a3-a206-91e0507cb361" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_3ebc6215-2b69-431d-980e-fcd5f7667817" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentLeaseLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_c791e9e0-b6b8-4cc7-bb37-be967df87faa" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_3ebc6215-2b69-431d-980e-fcd5f7667817" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_8bf27d54-0015-48e7-8762-7649a200a303" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_61f82329-c486-4549-88a5-e164dd7ad203" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_EquityAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_8bf27d54-0015-48e7-8762-7649a200a303" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_61f82329-c486-4549-88a5-e164dd7ad203" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_30cedd8d-995d-4821-9242-dbf3d2c53e45" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_8bf27d54-0015-48e7-8762-7649a200a303" xlink:to="loc_ifrs-full_NoncontrollingInterests_30cedd8d-995d-4821-9242-dbf3d2c53e45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_40a1406f-2f82-4f95-ba82-0d26b7a82c0a" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_40a1406f-2f82-4f95-ba82-0d26b7a82c0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_6584c04c-2cb4-468c-a1d3-9c5ea6212c45" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_Goodwill_6584c04c-2cb4-468c-a1d3-9c5ea6212c45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_4b235e4b-506a-4410-9883-431358bbfffd" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_PropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_4b235e4b-506a-4410-9883-431358bbfffd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_17a3069d-6e7a-4cfb-bacc-fabc950cf7a1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_17a3069d-6e7a-4cfb-bacc-fabc950cf7a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_8ffd5a5b-f5d9-442a-8b6a-5047501c7f9d" xlink:href="549300EEJH4FEPDBBR25-2022-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_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_tef_ActivosFinancierosYOtrosActivosNoCorrientes_8ffd5a5b-f5d9-442a-8b6a-5047501c7f9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_e960787b-7bcf-4010-88c8-36074949f83c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_DeferredTaxAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_DeferredTaxAssets_e960787b-7bcf-4010-88c8-36074949f83c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_b60babb9-ba0d-4727-bf84-beaa7ec58253" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_RightofuseAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_09ee4c38-3146-4ada-bb8d-c4b4741b7a2a" xlink:to="loc_ifrs-full_RightofuseAssets_b60babb9-ba0d-4727-bf84-beaa7ec58253" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_b5a5e6f9-230d-40f7-960b-6886c262a34f" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_GastoFinancieroNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_210e3d43-070c-4bec-a5ae-23ce0b50442c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_FinanceIncome"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_b5a5e6f9-230d-40f7-960b-6886c262a34f" xlink:to="loc_ifrs-full_FinanceIncome_210e3d43-070c-4bec-a5ae-23ce0b50442c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_66be5d56-9ba7-4af4-a86c-996b73cf7776" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NetForeignExchangeGain"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_b5a5e6f9-230d-40f7-960b-6886c262a34f" xlink:to="loc_ifrs-full_NetForeignExchangeGain_66be5d56-9ba7-4af4-a86c-996b73cf7776" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_854bd05d-3c43-40af-ae40-50a9f04acc97" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_FinanceCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_b5a5e6f9-230d-40f7-960b-6886c262a34f" xlink:to="loc_ifrs-full_FinanceCosts_854bd05d-3c43-40af-ae40-50a9f04acc97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_34709615-fe5f-41df-9ca6-42f1986736a3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_NetForeignExchangeLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GastoFinancieroNeto_b5a5e6f9-230d-40f7-960b-6886c262a34f" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_34709615-fe5f-41df-9ca6-42f1986736a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_98611b14-fe5f-4b1c-b7fa-7f093860fc6b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_EmployeeBenefitsExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_98611b14-fe5f-4b1c-b7fa-7f093860fc6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_68cf8caf-e821-4832-b4b9-bc7bc797e18f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:to="loc_ifrs-full_OtherIncome_68cf8caf-e821-4832-b4b9-bc7bc797e18f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_9fcb4f21-4b95-4f81-945c-8f9c933e3604" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherExpenseByNature"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:to="loc_ifrs-full_OtherExpenseByNature_9fcb4f21-4b95-4f81-945c-8f9c933e3604" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_22ec1b58-2daf-4148-976e-0985eb28ec21" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_RawMaterialsAndConsumablesUsed"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_22ec1b58-2daf-4148-976e-0985eb28ec21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_70a4991a-668e-4470-8d98-e6584089167c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Revenue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_2cd9bb52-37ef-4101-9886-9cee48890fa5" xlink:to="loc_ifrs-full_Revenue_70a4991a-668e-4470-8d98-e6584089167c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_047bee30-57dd-4f1d-bf2c-2ef5b351c4b3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_af12aea6-862d-49a9-a4f7-acbc4bdf993c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_047bee30-57dd-4f1d-bf2c-2ef5b351c4b3" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_af12aea6-862d-49a9-a4f7-acbc4bdf993c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2d34d5b7-cb51-4716-9783-49ca92f41b52" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_047bee30-57dd-4f1d-bf2c-2ef5b351c4b3" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2d34d5b7-cb51-4716-9783-49ca92f41b52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_5698952d-bfca-40d8-a78c-ae53594d95ca" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_0401e679-96b3-4a23-af5d-2e82a06b3261" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_5698952d-bfca-40d8-a78c-ae53594d95ca" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_0401e679-96b3-4a23-af5d-2e82a06b3261" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GastoFinancieroNeto_ffd357f9-d918-4d3d-a2b0-5e5c5825cd28" xlink:href="549300EEJH4FEPDBBR25-2022-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_5698952d-bfca-40d8-a78c-ae53594d95ca" xlink:to="loc_tef_GastoFinancieroNeto_ffd357f9-d918-4d3d-a2b0-5e5c5825cd28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_f9d60db5-2b54-4ea5-afe8-40196c1ef470" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_5698952d-bfca-40d8-a78c-ae53594d95ca" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_f9d60db5-2b54-4ea5-afe8-40196c1ef470" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_911593d8-0ca3-453b-a73b-8fc7062ac542" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_016f8068-626e-40b7-ba64-3e9d5804fcf8" xlink:href="549300EEJH4FEPDBBR25-2022-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_911593d8-0ca3-453b-a73b-8fc7062ac542" xlink:to="loc_tef_GananciaPerdidaDeActividadesOperativasAntesDeDepreciacionYAmortizacion_016f8068-626e-40b7-ba64-3e9d5804fcf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_4e2b268c-bb5f-44a8-b53f-cea58c9bc42f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_DepreciationAndAmortisationExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_911593d8-0ca3-453b-a73b-8fc7062ac542" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_4e2b268c-bb5f-44a8-b53f-cea58c9bc42f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Cuentasderesultadosconsolidadasdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_7b1d3c39-c1c5-45ff-86f3-0a7f891737c3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_ac9aadce-3800-45b2-8d05-c158e14e3e89" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_7b1d3c39-c1c5-45ff-86f3-0a7f891737c3" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_ac9aadce-3800-45b2-8d05-c158e14e3e89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_73a9c550-ec80-435a-9ae4-d276dd448995" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_7b1d3c39-c1c5-45ff-86f3-0a7f891737c3" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_73a9c550-ec80-435a-9ae4-d276dd448995" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_ComprehensiveIncome_8bb93e17-43e2-4559-9996-1fef69bf021e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_5c2eabdf-46b7-40fe-89fc-1ea35ab448d3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_8bb93e17-43e2-4559-9996-1fef69bf021e" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_5c2eabdf-46b7-40fe-89fc-1ea35ab448d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_ca102b2d-ad81-451d-929b-d2f500237666" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_8bb93e17-43e2-4559-9996-1fef69bf021e" xlink:to="loc_ifrs-full_ProfitLoss_ca102b2d-ad81-451d-929b-d2f500237666" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_a3c23277-89f6-4fe7-ba19-b330104cc95f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_e96805ca-9eda-486c-b760-6bc42133ee52" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_a3c23277-89f6-4fe7-ba19-b330104cc95f" xlink:to="loc_tef_ImpuestoSobreLaRentaRelativoALaParticipacionEnLasGananciasPerdidasReconocidasDirectamenteEnElPatrimonioDeAsociadasYOtros_e96805ca-9eda-486c-b760-6bc42133ee52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_69fb5a2e-8d88-4dba-a04f-7048a00a7ea3" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_a3c23277-89f6-4fe7-ba19-b330104cc95f" xlink:to="loc_tef_ParticipacionEnPerdidasGananciasImputadasDirectamenteAlPatrimonioNetoAsociadasYOtros_69fb5a2e-8d88-4dba-a04f-7048a00a7ea3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5b003ecf-515f-401a-983a-304141d950ff" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_782d73f1-e9e2-4bef-b855-72c488f3f940" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5b003ecf-515f-401a-983a-304141d950ff" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_782d73f1-e9e2-4bef-b855-72c488f3f940" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_f815a126-1802-42b1-a9d5-93cf157deb98" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5b003ecf-515f-401a-983a-304141d950ff" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_f815a126-1802-42b1-a9d5-93cf157deb98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_0b036e16-3240-4d94-bb81-5f64c1c7fbdb" xlink:href="549300EEJH4FEPDBBR25-2022-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_5b003ecf-515f-401a-983a-304141d950ff" xlink:to="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_0b036e16-3240-4d94-bb81-5f64c1c7fbdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_327a978b-80d0-4cc7-9e4d-01eac8f79961" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5b003ecf-515f-401a-983a-304141d950ff" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_327a978b-80d0-4cc7-9e4d-01eac8f79961" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_a8a88779-ca29-421d-a998-27a704d50529" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_5b003ecf-515f-401a-983a-304141d950ff" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_a8a88779-ca29-421d-a998-27a704d50529" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e70ace6e-2f0b-40ae-9507-c2015c1d3c9c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_e31e6c9f-561c-4936-ad58-101ef16404ad" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e70ace6e-2f0b-40ae-9507-c2015c1d3c9c" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_e31e6c9f-561c-4936-ad58-101ef16404ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_65bacf88-cc41-4e58-96d6-224485d1317d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e70ace6e-2f0b-40ae-9507-c2015c1d3c9c" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_65bacf88-cc41-4e58-96d6-224485d1317d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_122a03ce-70f3-4259-80f1-c7abac62a24b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e70ace6e-2f0b-40ae-9507-c2015c1d3c9c" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_122a03ce-70f3-4259-80f1-c7abac62a24b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_09e09eb4-c1f3-44da-a956-9507f286e0f8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_e5babc96-1a97-431e-b2a8-081b6ab44d94" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_09e09eb4-c1f3-44da-a956-9507f286e0f8" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_e5babc96-1a97-431e-b2a8-081b6ab44d94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_8f695e9d-820e-4d84-8c94-995789499b1e" xlink:href="549300EEJH4FEPDBBR25-2022-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_09e09eb4-c1f3-44da-a956-9507f286e0f8" xlink:to="loc_tef_EfectoImpositivoSobreLasGananciasPerdidasProcedentesDeCobertura_8f695e9d-820e-4d84-8c94-995789499b1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_b0eb9806-27b2-4436-820f-09ce6a64bf2c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_09e09eb4-c1f3-44da-a956-9507f286e0f8" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_b0eb9806-27b2-4436-820f-09ce6a64bf2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_c5001843-674c-4d14-a988-0b7394b36117" xlink:href="549300EEJH4FEPDBBR25-2022-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_09e09eb4-c1f3-44da-a956-9507f286e0f8" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasEnLaCoberturaDeFlujoDeEfectivo_c5001843-674c-4d14-a988-0b7394b36117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_8cd793f1-34ea-4392-a303-ea15c93ed955" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_0ad6b7f6-383c-4b75-aee9-993c39fb1eee" xlink:href="549300EEJH4FEPDBBR25-2022-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_8cd793f1-34ea-4392-a303-ea15c93ed955" xlink:to="loc_tef_PerdidasGananciasActuarialesYEfectoDelLimiteDelActivoPorPlanesDePrestacionDefinida_0ad6b7f6-383c-4b75-aee9-993c39fb1eee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_cd88345d-c034-42a4-b456-7d309077cc21" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_8cd793f1-34ea-4392-a303-ea15c93ed955" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_cd88345d-c034-42a4-b456-7d309077cc21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_c2c2b9cf-e393-46b2-aec3-a9b76b8967d8" xlink:href="549300EEJH4FEPDBBR25-2022-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_8cd793f1-34ea-4392-a303-ea15c93ed955" xlink:to="loc_tef_AjustePorReclasificacionSobreNuevasMedicionesDePlanesDeBeneficiosDefinidosAntesDeImpuestos_c2c2b9cf-e393-46b2-aec3-a9b76b8967d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo_a769152b-fd5d-4c1f-bf77-5b5eefcc8d3e" xlink:href="549300EEJH4FEPDBBR25-2022-12-31.xsd#tef_OtrosResultadosIntegralesNetoDeImpuestosCostosDeCoberturaDeFlujosDeEfectivo"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_142bc9b2-17ff-4072-b7d0-e210030efafd" xlink:href="549300EEJH4FEPDBBR25-2022-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_a769152b-fd5d-4c1f-bf77-5b5eefcc8d3e" xlink:to="loc_tef_GananciasPerdidasPorCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_142bc9b2-17ff-4072-b7d0-e210030efafd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_efce8dce-5cb1-47ee-bb7e-7905d1cd44fc" xlink:href="549300EEJH4FEPDBBR25-2022-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_a769152b-fd5d-4c1f-bf77-5b5eefcc8d3e" xlink:to="loc_tef_ImpuestoALasGananciasRelacionadoConLosCostosDeCoberturaDeFlujosDeEfectivoIncluidosEnOtroResultadoIntegral_efce8dce-5cb1-47ee-bb7e-7905d1cd44fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_e00a15cf-04a4-4b4d-8cd0-13667488e871" xlink:href="549300EEJH4FEPDBBR25-2022-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_a769152b-fd5d-4c1f-bf77-5b5eefcc8d3e" xlink:to="loc_tef_AjustesPorReclasificacionDeLosCostosDeCoberturaDeFlujosDeEfectivoAntesDeImpuestos_e00a15cf-04a4-4b4d-8cd0-13667488e871" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_739057fa-273c-47f1-a2e1-5183267b1bb5" xlink:href="549300EEJH4FEPDBBR25-2022-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_a769152b-fd5d-4c1f-bf77-5b5eefcc8d3e" xlink:to="loc_tef_ImpuestoSobreLaRentaRelacionadoConLaReclasificacionDeGananciasPerdidasSobreCostosDeCoberturaDeFlujosDeEfectivo_739057fa-273c-47f1-a2e1-5183267b1bb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_072e439e-3943-4ab3-995e-7ed63512f711" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_43ea349c-a3d0-43b4-ad88-3c3f63336281" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_072e439e-3943-4ab3-995e-7ed63512f711" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeBeforeTax_43ea349c-a3d0-43b4-ad88-3c3f63336281" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_993efe7c-c6d5-4f5b-a8e3-b719a3a5404f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_072e439e-3943-4ab3-995e-7ed63512f711" xlink:to="loc_ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome_993efe7c-c6d5-4f5b-a8e3-b719a3a5404f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6827639f-a6d7-406c-9df6-14d3cb9a0ab2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_4965b87c-1027-43bf-9b1d-54d73d467f8d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6827639f-a6d7-406c-9df6-14d3cb9a0ab2" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_4965b87c-1027-43bf-9b1d-54d73d467f8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_669f9d0a-3066-4f25-b77c-f712f49ac1d2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6827639f-a6d7-406c-9df6-14d3cb9a0ab2" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod_669f9d0a-3066-4f25-b77c-f712f49ac1d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_72962011-b3a1-42ed-9f17-e7cd97c2c005" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6827639f-a6d7-406c-9df6-14d3cb9a0ab2" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_72962011-b3a1-42ed-9f17-e7cd97c2c005" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosderesultadosglobalesconsolidadosdelosejerciciosanualesterminadosel31dediciembre_1" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_230b9c6d-1ae2-4940-ab3d-b1cc18a30787" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_0db527a4-28e5-44da-8b24-b0088886bc7d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_230b9c6d-1ae2-4940-ab3d-b1cc18a30787" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_0db527a4-28e5-44da-8b24-b0088886bc7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_c755171e-5fd3-443d-8e0f-19a24d729ad1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_230b9c6d-1ae2-4940-ab3d-b1cc18a30787" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_c755171e-5fd3-443d-8e0f-19a24d729ad1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Estadosdeflujosdeefectivoconsolidadosdelosejerciciosanualesterminadosel31dediciembre" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2022-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_1a0662f2-6014-44c4-95ae-55ceaae2573e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_6c9cd105-45dc-4a0e-a8fb-974b22719abb" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_Cash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_1a0662f2-6014-44c4-95ae-55ceaae2573e" xlink:to="loc_ifrs-full_Cash_6c9cd105-45dc-4a0e-a8fb-974b22719abb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_75289fba-5222-4e7f-bd88-a8c3c107b3b9" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_1a0662f2-6014-44c4-95ae-55ceaae2573e" xlink:to="loc_ifrs-full_CashEquivalents_75289fba-5222-4e7f-bd88-a8c3c107b3b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_fb8d3569-ba98-46b5-adc1-d0dcbf905c07" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoDeLasOperaciones_e71898c0-fc5d-405b-bae4-7e2e69ec95ca" xlink:href="549300EEJH4FEPDBBR25-2022-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_fb8d3569-ba98-46b5-adc1-d0dcbf905c07" xlink:to="loc_tef_FlujosDeEfectivoDeLasOperaciones_e71898c0-fc5d-405b-bae4-7e2e69ec95ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_e94e3b44-e179-40fd-82ee-deec9a44aa92" xlink:href="549300EEJH4FEPDBBR25-2022-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_fb8d3569-ba98-46b5-adc1-d0dcbf905c07" xlink:to="loc_tef_FlujosDeEfectivoUtilizadosEnOperaciones_e94e3b44-e179-40fd-82ee-deec9a44aa92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_897fe7da-9f14-4c96-a401-953eeeefcaf8" xlink:href="549300EEJH4FEPDBBR25-2022-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_fb8d3569-ba98-46b5-adc1-d0dcbf905c07" xlink:to="loc_tef_PagoDeInteresesYOtrosGastosFinancierosNetoDeDividendosRecibidos_897fe7da-9f14-4c96-a401-953eeeefcaf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_4ef8578f-3bde-4659-88d8-a0ae8942c9e5" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_fb8d3569-ba98-46b5-adc1-d0dcbf905c07" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_4ef8578f-3bde-4659-88d8-a0ae8942c9e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_576d7bf6-33a3-48f7-a6b0-3d749963653e" xlink:href="549300EEJH4FEPDBBR25-2022-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_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_tef_PagosPorInversionesFinancierasNoIncluidasEnEquivalentesDeEfectivo_576d7bf6-33a3-48f7-a6b0-3d749963653e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_1b7ab5ed-8865-4495-ad3c-e3b0175d8248" xlink:href="549300EEJH4FEPDBBR25-2022-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_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_tef_IngresosDePagosPorColocacionesDeExcedentesDeEfectivoNoIncluidosEnEquivalentesDeEfectivo_1b7ab5ed-8865-4495-ad3c-e3b0175d8248" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_76fb0449-02bb-4d8d-8e0c-7e3951d5fbe1" xlink:href="549300EEJH4FEPDBBR25-2022-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_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_tef_IngresosDeInversionesFinancierasNoIncluidosEnEquivalentesDeEfectivo_76fb0449-02bb-4d8d-8e0c-7e3951d5fbe1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_8d8a296c-ba69-4b40-97eb-e28479683320" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_8d8a296c-ba69-4b40-97eb-e28479683320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_ff3f3a2d-8eaf-45c3-ae93-35b4a75723f2" xlink:href="549300EEJH4FEPDBBR25-2022-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_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_tef_ProductoDeCompraPropiedadPlantaYEquipoYActivosIntangiblesClasificadosComoActividadesDeInversion_ff3f3a2d-8eaf-45c3-ae93-35b4a75723f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_13e2a67a-ead7-4573-a463-5a213a9e435f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_5a07cd5e-0b87-422a-9705-f65269ccac3f" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_13e2a67a-ead7-4573-a463-5a213a9e435f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_52dd36e3-de5c-4111-8001-73f6c8b4c35d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_52dd36e3-de5c-4111-8001-73f6c8b4c35d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_13009780-811c-4c7d-9598-0f0b6ff65c34" xlink:href="549300EEJH4FEPDBBR25-2022-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_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_tef_EfectoDeLosCambiosEnLosMetodosDeConsolidacionYOtrosSobreElEfectivoYEquivalentes_13009780-811c-4c7d-9598-0f0b6ff65c34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_3bdb90d7-750b-4c48-b8d4-030c64b21086" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_3bdb90d7-750b-4c48-b8d4-030c64b21086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_d6c2214c-1e08-4e54-915e-51ea91f12737" xlink:href="549300EEJH4FEPDBBR25-2022-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_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_tef_EfectivoReclasificadoAActivosMantenidosParaLaVenta_d6c2214c-1e08-4e54-915e-51ea91f12737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_724b3bd6-67b6-4c7d-9086-739beea8b69d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_724b3bd6-67b6-4c7d-9086-739beea8b69d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_2b402387-fd7a-4ac5-bf9f-660295d30e06" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_aacdb9db-3de9-488d-ae11-82f16123ea0e" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_2b402387-fd7a-4ac5-bf9f-660295d30e06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_0c83ba80-f9d1-4f83-8f4e-dd36d95303a1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_DividendsPaidClassifiedAsFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_0c83ba80-f9d1-4f83-8f4e-dd36d95303a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_84bf3292-175e-4a40-ad80-9ea4e0b18cf8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProceedsFromIssuingShares"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_84bf3292-175e-4a40-ad80-9ea4e0b18cf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_df11242b-237c-40c9-b185-95fbbd06dfd8" xlink:href="549300EEJH4FEPDBBR25-2022-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_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_tef_IngresosDePagosPorAccionesEnTesoreriaYOtrasActividadesDeLosAccionistas_df11242b-237c-40c9-b185-95fbbd06dfd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_63628e43-56e3-4c6e-a7cd-874025449954" xlink:href="549300EEJH4FEPDBBR25-2022-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_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_tef_OperacionesConOtrosTenedoresDeInstrumentosDePatrimonio_63628e43-56e3-4c6e-a7cd-874025449954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_cd6e0a2d-0554-4a8f-93ee-7f4e65690d5c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_cd6e0a2d-0554-4a8f-93ee-7f4e65690d5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_deebd18f-46ef-4fc6-8e49-fe1fbb5cfe17" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_deebd18f-46ef-4fc6-8e49-fe1fbb5cfe17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_bdeafa37-91f1-48d9-b512-0a50f31df46e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_RepaymentsOfBondsNotesAndDebentures"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_bdeafa37-91f1-48d9-b512-0a50f31df46e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_c301d640-4c9f-41a9-ad90-4deedf14343e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_c301d640-4c9f-41a9-ad90-4deedf14343e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_8e4d3e69-9d3d-4630-bbdf-62e2589982b5" xlink:href="549300EEJH4FEPDBBR25-2022-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_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_8e4d3e69-9d3d-4630-bbdf-62e2589982b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_c4d72b3e-f38c-414b-894a-9596a4644cb6" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6e5c0a8f-6e7d-4b37-b08a-2ac1589c5a1c" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_c4d72b3e-f38c-414b-894a-9596a4644cb6" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
