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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:405fc2cc-d75f-40bc-8e49-964b987dedff,g:20c0d93b-a21e-43f2-84ab-b30c69ce4872-->
<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.repsol.com/role/EstadodesituacinfinancieracorrientenocorrienteStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#EstadodesituacinfinancieracorrientenocorrienteStatement"/>
  <link:calculationLink xlink:role="http://www.repsol.com/role/EstadodesituacinfinancieracorrientenocorrienteStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_c2b8b7f0-bb5b-4351-80ed-a909da5d82e8" 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_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_07486937-ad94-4112-9149-c9347a4dce2e" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_c2b8b7f0-bb5b-4351-80ed-a909da5d82e8" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_07486937-ad94-4112-9149-c9347a4dce2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_88fbbfc1-9e55-4146-89bd-369f5408fe7b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TradeAndOtherCurrentPayables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_c2b8b7f0-bb5b-4351-80ed-a909da5d82e8" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_88fbbfc1-9e55-4146-89bd-369f5408fe7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_7665131f-8093-4fa4-8fcf-eeb33ae50ee2" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_c2b8b7f0-bb5b-4351-80ed-a909da5d82e8" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_7665131f-8093-4fa4-8fcf-eeb33ae50ee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_4ce6219b-fa60-478c-b72b-318b4bda8327" 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_c2b8b7f0-bb5b-4351-80ed-a909da5d82e8" xlink:to="loc_ifrs-full_CurrentProvisions_4ce6219b-fa60-478c-b72b-318b4bda8327" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_0a1cd858-c542-4db0-8f14-e58f0a008ee0" 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_CurrentAssets_61eeea2b-de84-4cad-9a48-c611739dd65e" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_0a1cd858-c542-4db0-8f14-e58f0a008ee0" xlink:to="loc_ifrs-full_CurrentAssets_61eeea2b-de84-4cad-9a48-c611739dd65e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_5d79e55b-21ca-49b4-8d3e-6d50a1b3a331" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_0a1cd858-c542-4db0-8f14-e58f0a008ee0" xlink:to="loc_ifrs-full_NoncurrentAssets_5d79e55b-21ca-49b4-8d3e-6d50a1b3a331" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" 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_CashAndCashEquivalents_6484abcc-e0fe-4bd1-b056-9bc9d73a532d" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_CashAndCashEquivalents_6484abcc-e0fe-4bd1-b056-9bc9d73a532d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_14b98e21-ea0a-4c0f-b7c8-7692282d6921" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_Inventories_14b98e21-ea0a-4c0f-b7c8-7692282d6921" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets_f216e5bb-60f1-4a10-9f10-8ccb4ac96ddc" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCurrentAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_OtherCurrentAssets_f216e5bb-60f1-4a10-9f10-8ccb4ac96ddc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables_405a9f39-ef36-4fa6-b285-484ebc3a1152" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TradeAndOtherCurrentReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables_405a9f39-ef36-4fa6-b285-484ebc3a1152" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentFinancialAssets_bc58a2be-fa60-4ae5-b8ad-5e1c9bb9ff1c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCurrentFinancialAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_OtherCurrentFinancialAssets_bc58a2be-fa60-4ae5-b8ad-5e1c9bb9ff1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_daf4a1d3-fd6a-460f-9e06-5f6bee4d8f92" 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_e4e518ba-9c78-488e-aaaa-bf1e92a9dec7" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_daf4a1d3-fd6a-460f-9e06-5f6bee4d8f92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" 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_InvestmentAccountedForUsingEquityMethod_a184d4cc-910f-455d-8a4f-9464638975ce" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_a184d4cc-910f-455d-8a4f-9464638975ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_0c48e310-2e46-4ee8-890a-e743188f000c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherNoncurrentNonfinancialAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_0c48e310-2e46-4ee8-890a-e743188f000c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_48c3a1f4-b41c-4b5c-ade4-0bfa42de515b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IntangibleAssetsAndGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_48c3a1f4-b41c-4b5c-ade4-0bfa42de515b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_184c1e60-d021-4093-9373-3a68d0e5d44a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentFinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_184c1e60-d021-4093-9373-3a68d0e5d44a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_86ee9ac9-7bbc-4bbd-81c5-26af47c0c95e" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_DeferredTaxAssets_86ee9ac9-7bbc-4bbd-81c5-26af47c0c95e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_e73fefbc-7711-4df9-9d67-72c621cb65b5" 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="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_b4ec479a-790e-432a-a847-34e1d086519f" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_e73fefbc-7711-4df9-9d67-72c621cb65b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_21540144-14b1-4b42-bbb3-d4c8739289f3" 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_NoncurrentProvisions_f2bc20df-9487-4c63-ab47-7f600aebf094" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_21540144-14b1-4b42-bbb3-d4c8739289f3" xlink:to="loc_ifrs-full_NoncurrentProvisions_f2bc20df-9487-4c63-ab47-7f600aebf094" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_f941c7a1-d464-4d6a-acae-9936a4a772ad" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_21540144-14b1-4b42-bbb3-d4c8739289f3" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_f941c7a1-d464-4d6a-acae-9936a4a772ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_4d383675-051d-4e22-b7fd-97ee8e38af8f" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_21540144-14b1-4b42-bbb3-d4c8739289f3" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_4d383675-051d-4e22-b7fd-97ee8e38af8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_53de0e3b-3b91-4052-aa63-67e8724b4084" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherNoncurrentLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_21540144-14b1-4b42-bbb3-d4c8739289f3" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_53de0e3b-3b91-4052-aa63-67e8724b4084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_2b72be04-d2c2-44e2-af3a-938e69e2fbc3" 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_NoncontrollingInterests_39770930-557e-4c2e-bda4-c373512793ad" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_2b72be04-d2c2-44e2-af3a-938e69e2fbc3" xlink:to="loc_ifrs-full_NoncontrollingInterests_39770930-557e-4c2e-bda4-c373512793ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_a330ce02-e143-4080-b431-7e81c53b7597" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_FondosPropios"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_2b72be04-d2c2-44e2-af3a-938e69e2fbc3" xlink:to="loc_repsol_FondosPropios_a330ce02-e143-4080-b431-7e81c53b7597" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_546bc597-014a-42f7-8b46-98e6de5d1c60" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_2b72be04-d2c2-44e2-af3a-938e69e2fbc3" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_546bc597-014a-42f7-8b46-98e6de5d1c60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_84c02318-1a15-4be8-a174-2001f5dbc297" 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_NoncurrentLiabilities_71122b2f-ddca-4b63-8366-0ccead96e2f2" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_84c02318-1a15-4be8-a174-2001f5dbc297" xlink:to="loc_ifrs-full_NoncurrentLiabilities_71122b2f-ddca-4b63-8366-0ccead96e2f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_32698ca9-c68f-4ff9-a26c-0297cae54799" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_84c02318-1a15-4be8-a174-2001f5dbc297" xlink:to="loc_ifrs-full_Equity_32698ca9-c68f-4ff9-a26c-0297cae54799" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_70e94a27-0f10-4499-88e5-b96b1eeb1e15" 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_84c02318-1a15-4be8-a174-2001f5dbc297" xlink:to="loc_ifrs-full_CurrentLiabilities_70e94a27-0f10-4499-88e5-b96b1eeb1e15" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement"/>
  <link:calculationLink xlink:role="http://www.repsol.com/role/EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_1a9d7809-f1be-48bb-9075-dd38274e3efd" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_4d313006-8b13-42c5-8dbc-c9b2542e0db3" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_1a9d7809-f1be-48bb-9075-dd38274e3efd" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_4d313006-8b13-42c5-8dbc-c9b2542e0db3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_b83471f0-aa95-4dc6-8370-2fc104e23c2a" 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_ProfitLossAttributableToOwnersOfParent_1a9d7809-f1be-48bb-9075-dd38274e3efd" xlink:to="loc_ifrs-full_ProfitLoss_b83471f0-aa95-4dc6-8370-2fc104e23c2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_ccf99aec-f000-4129-8391-e25d637b86f9" 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_4a868f6c-30d6-4ef5-a39f-20830a52231c" 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_ccf99aec-f000-4129-8391-e25d637b86f9" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_4a868f6c-30d6-4ef5-a39f-20830a52231c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_fbc6ddc2-0915-45be-a67f-9f7d72179a7a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_ccf99aec-f000-4129-8391-e25d637b86f9" xlink:to="loc_ifrs-full_FinanceIncomeCost_fbc6ddc2-0915-45be-a67f-9f7d72179a7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_be667938-f947-42e6-b773-cd8b5aabf696" 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_ccf99aec-f000-4129-8391-e25d637b86f9" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_be667938-f947-42e6-b773-cd8b5aabf696" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_8e380199-a055-419a-94a8-f6e0a2391308" 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_f9c29249-22a8-467a-bf6e-19ac1a81dda2" 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_8e380199-a055-419a-94a8-f6e0a2391308" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_f9c29249-22a8-467a-bf6e-19ac1a81dda2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1f7ec6ed-08a4-4904-9985-3bec954d1965" 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_8e380199-a055-419a-94a8-f6e0a2391308" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1f7ec6ed-08a4-4904-9985-3bec954d1965" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_9f3e79cd-e41b-43e9-9db3-8aa0616328f6" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_9f3e79cd-e41b-43e9-9db3-8aa0616328f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossOnFinancialAssets_33c062b7-5389-4b7e-b054-9b9c23aa2884" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ImpairmentLossOnFinancialAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:to="loc_ifrs-full_ImpairmentLossOnFinancialAssets_33c062b7-5389-4b7e-b054-9b9c23aa2884" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_df7858d7-d7e2-4fa2-91d5-e696310b9bac" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:to="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_df7858d7-d7e2-4fa2-91d5-e696310b9bac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_2cf7f44f-b970-4d13-947e-7497994b8eec" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherFinanceIncomeCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_2cf7f44f-b970-4d13-947e-7497994b8eec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestRevenueExpense_4656ade8-03c8-44be-a5fc-092b1d6c56a8" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestRevenueExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_f49d2fbc-aa56-45eb-b623-8c6d97e29d1f" xlink:to="loc_ifrs-full_InterestRevenueExpense_4656ade8-03c8-44be-a5fc-092b1d6c56a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" 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_ifrs-full_RawMaterialsAndConsumablesUsed_db72aa00-0a92-4075-8cb9-200b1f9d9183" 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="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_db72aa00-0a92-4075-8cb9-200b1f9d9183" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_e3ad6960-1390-4984-8794-107f06b53fa0" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_e3ad6960-1390-4984-8794-107f06b53fa0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_d342fee9-ecfd-419b-87c6-baff97217434" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_d342fee9-ecfd-419b-87c6-baff97217434" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_MiscellaneousOtherOperatingExpense_30d52277-330e-4010-9f31-2ee3c54ac386" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_MiscellaneousOtherOperatingExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_MiscellaneousOtherOperatingExpense_30d52277-330e-4010-9f31-2ee3c54ac386" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TransportationExpense_9897981c-35b8-47a4-940d-0acba13afd5f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TransportationExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_TransportationExpense_9897981c-35b8-47a4-940d-0acba13afd5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_0cba9988-a55d-4eae-bff8-11dc7132f54c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_0cba9988-a55d-4eae-bff8-11dc7132f54c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromRenderingOfServices_edd08477-3cfc-44a6-9d80-960720c71995" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RevenueFromRenderingOfServices"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_RevenueFromRenderingOfServices_edd08477-3cfc-44a6-9d80-960720c71995" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_6eb9a366-23d7-4c06-b631-7a6349197b91" 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="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_6eb9a366-23d7-4c06-b631-7a6349197b91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_ebfa4872-d662-44c5-91d9-0471797cd16f" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Suministros"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_repsol_Suministros_ebfa4872-d662-44c5-91d9-0471797cd16f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_0c0b325d-8238-41a5-bf9f-cf7741f95097" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_0c0b325d-8238-41a5-bf9f-cf7741f95097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_8440a7f8-1552-4def-bf46-535468a32601" 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="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_OtherIncome_8440a7f8-1552-4def-bf46-535468a32601" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_cd0c53c8-0a58-4287-bd5f-a04e96a7e270" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RevenueFromSaleOfGoods"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_62381a76-8605-4e90-9ef0-b55a3f3de328" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_cd0c53c8-0a58-4287-bd5f-a04e96a7e270" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement"/>
  <link:calculationLink xlink:role="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_381b1078-b0b7-4b91-8d56-6b2bab23506c" 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_ComprehensiveIncomeAttributableToNoncontrollingInterests_72fb71c4-9902-4f5b-8233-5e5bae92d6d6" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_381b1078-b0b7-4b91-8d56-6b2bab23506c" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_72fb71c4-9902-4f5b-8233-5e5bae92d6d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_29031c7b-d4eb-451a-b429-555364b15ca5" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_381b1078-b0b7-4b91-8d56-6b2bab23506c" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_29031c7b-d4eb-451a-b429-555364b15ca5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_f71c1d34-60f1-427a-9570-658781c5fe7a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_16f6bcca-b694-484e-b62b-9ec537f94364" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome_f71c1d34-60f1-427a-9570-658781c5fe7a" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_16f6bcca-b694-484e-b62b-9ec537f94364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_4c6d992d-44a8-4f2d-afd6-253ee57aa274" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome_f71c1d34-60f1-427a-9570-658781c5fe7a" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_4c6d992d-44a8-4f2d-afd6-253ee57aa274" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_99a282ab-1c46-4ae6-bedd-783cecfee2a7" 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_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_8d6c2017-7d8e-4fac-a181-fd81f9199451" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_99a282ab-1c46-4ae6-bedd-783cecfee2a7" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_8d6c2017-7d8e-4fac-a181-fd81f9199451" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_7666dfee-8901-47ed-bf1d-dfe07246b0c9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_99a282ab-1c46-4ae6-bedd-783cecfee2a7" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_7666dfee-8901-47ed-bf1d-dfe07246b0c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_254f9865-8c9b-4725-b493-a8dfaf97eb50" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_99a282ab-1c46-4ae6-bedd-783cecfee2a7" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_254f9865-8c9b-4725-b493-a8dfaf97eb50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_6be83b14-e433-4d89-bd94-813d9c945714" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_92d2db40-24b3-42a8-9f3c-aebc9591ac10" 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_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_6be83b14-e433-4d89-bd94-813d9c945714" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_92d2db40-24b3-42a8-9f3c-aebc9591ac10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_0cddb92a-2c17-4240-867e-f39ee00fec6c" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_6be83b14-e433-4d89-bd94-813d9c945714" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_0cddb92a-2c17-4240-867e-f39ee00fec6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_89aa5690-afdf-4b1a-b3fe-20d81d91b87b" 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_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_f8a9d20b-3ab8-4e65-8db5-f99d7ed66f83" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_89aa5690-afdf-4b1a-b3fe-20d81d91b87b" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_f8a9d20b-3ab8-4e65-8db5-f99d7ed66f83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_db372e20-318c-46c5-8752-a1cfbaa234b0" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_89aa5690-afdf-4b1a-b3fe-20d81d91b87b" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_db372e20-318c-46c5-8752-a1cfbaa234b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_48789cb2-45f0-4b65-829c-f7eea8e3dffd" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_89aa5690-afdf-4b1a-b3fe-20d81d91b87b" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_48789cb2-45f0-4b65-829c-f7eea8e3dffd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_018bf277-cb72-4c2b-81de-29181af6ca7f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_89aa5690-afdf-4b1a-b3fe-20d81d91b87b" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_018bf277-cb72-4c2b-81de-29181af6ca7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_a2c33a24-39c8-448d-84a8-9fe52303e6b9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_fa337054-3c67-48b4-a540-a7bca5364042" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_a2c33a24-39c8-448d-84a8-9fe52303e6b9" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_fa337054-3c67-48b4-a540-a7bca5364042" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_000e20b8-38ae-48e8-8ee5-53348268bea9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_a2c33a24-39c8-448d-84a8-9fe52303e6b9" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_000e20b8-38ae-48e8-8ee5-53348268bea9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1"/>
  <link:calculationLink xlink:role="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_6b59cf87-988c-42db-8eec-4f5cf45f0cd6" 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_ae076cdb-3fb2-44bd-8abe-282a29a6a8b8" 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_6b59cf87-988c-42db-8eec-4f5cf45f0cd6" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_ae076cdb-3fb2-44bd-8abe-282a29a6a8b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_d313f8b1-3b8a-4713-aaa0-1e7cca9791f1" 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_6b59cf87-988c-42db-8eec-4f5cf45f0cd6" xlink:to="loc_ifrs-full_ProfitLoss_d313f8b1-3b8a-4713-aaa0-1e7cca9791f1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodeflujosdeefectivomtodoindirectoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#EstadodeflujosdeefectivomtodoindirectoStatement"/>
  <link:calculationLink xlink:role="http://www.repsol.com/role/EstadodeflujosdeefectivomtodoindirectoStatement" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d6351092-28c9-44c0-b9cd-dee6b1241e07" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_8f77bb01-8062-4360-b020-818cbf2603ee" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d6351092-28c9-44c0-b9cd-dee6b1241e07" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_8f77bb01-8062-4360-b020-818cbf2603ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_5c7fe8c0-d227-454d-8996-ae6193a4c570" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d6351092-28c9-44c0-b9cd-dee6b1241e07" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_5c7fe8c0-d227-454d-8996-ae6193a4c570" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_73130192-3918-4232-b240-993f39495f7d" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d6351092-28c9-44c0-b9cd-dee6b1241e07" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_73130192-3918-4232-b240-993f39495f7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities_5fb6ce31-aa77-45b3-a638-7de629df3f85" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d6351092-28c9-44c0-b9cd-dee6b1241e07" xlink:to="loc_ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities_5fb6ce31-aa77-45b3-a638-7de629df3f85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_6a0195fd-b828-41bd-bcb4-47f12f64af2c" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_b3d88696-365f-48c4-8eb1-ae23bd55c94c" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_6a0195fd-b828-41bd-bcb4-47f12f64af2c" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_b3d88696-365f-48c4-8eb1-ae23bd55c94c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_3ec22dd6-a925-4b77-bf1a-b8be81cca63d" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_6a0195fd-b828-41bd-bcb4-47f12f64af2c" xlink:to="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_3ec22dd6-a925-4b77-bf1a-b8be81cca63d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_f16e6748-a8e2-4acb-8a0d-9b567b667a38" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_78f611d9-2c99-4615-972f-1d7184f60a91" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_f16e6748-a8e2-4acb-8a0d-9b567b667a38" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_78f611d9-2c99-4615-972f-1d7184f60a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_34d7c597-93c5-4581-bf65-b39fc841d498" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherAdjustmentsToReconcileProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_f16e6748-a8e2-4acb-8a0d-9b567b667a38" xlink:to="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_34d7c597-93c5-4581-bf65-b39fc841d498" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" 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_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_093d8678-81ac-458c-ae33-4e585177eda9" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_093d8678-81ac-458c-ae33-4e585177eda9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_aaa5fdd4-5dc3-4804-acc7-e54fbf900a00" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_aaa5fdd4-5dc3-4804-acc7-e54fbf900a00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_bee3caf1-4c27-4dc0-9f3d-6470e930c1a7" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_bee3caf1-4c27-4dc0-9f3d-6470e930c1a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_79dadda7-df11-4175-a192-ad24e9deb34d" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_79dadda7-df11-4175-a192-ad24e9deb34d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_65b05e06-f8b9-42f1-8982-e997267f64cd" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_58461259-1908-4697-be86-0f440e14966b" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_65b05e06-f8b9-42f1-8982-e997267f64cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_bb545793-5a07-44f7-b047-5038b6b6c239" 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_repsol_PagoPorInversiones_502195b1-ca01-4717-901f-0bcb8889c09c" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversiones"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_bb545793-5a07-44f7-b047-5038b6b6c239" xlink:to="loc_repsol_PagoPorInversiones_502195b1-ca01-4717-901f-0bcb8889c09c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_f38e7583-98c9-4894-9b1a-dc65e18eca73" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversiones"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_bb545793-5a07-44f7-b047-5038b6b6c239" xlink:to="loc_repsol_CobroPorDesinversiones_f38e7583-98c9-4894-9b1a-dc65e18eca73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_704acea1-c861-452c-a4ec-a2a7e29e4ecd" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_bb545793-5a07-44f7-b047-5038b6b6c239" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_704acea1-c861-452c-a4ec-a2a7e29e4ecd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1dfbc289-5294-44ec-81d9-169999d204dd" 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_ifrs-full_ProfitLossBeforeTax_ce7d1d62-3e1d-40fc-b6e4-3f1da4e8f419" 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_CashFlowsFromUsedInOperatingActivities_1dfbc289-5294-44ec-81d9-169999d204dd" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_ce7d1d62-3e1d-40fc-b6e4-3f1da4e8f419" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_7716e5b9-52a1-472b-89af-095e52948027" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInWorkingCapital"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1dfbc289-5294-44ec-81d9-169999d204dd" xlink:to="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_7716e5b9-52a1-472b-89af-095e52948027" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_db7ff9c6-8393-49a8-96a4-c18a68893db3" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1dfbc289-5294-44ec-81d9-169999d204dd" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_db7ff9c6-8393-49a8-96a4-c18a68893db3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_a8d5674a-69f5-4ec4-98fa-48ba744355d1" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1dfbc289-5294-44ec-81d9-169999d204dd" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_a8d5674a-69f5-4ec4-98fa-48ba744355d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_59bea84f-a213-408c-8d9d-46b4c6692c9b" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_e97cd3c5-1888-415c-810d-ac082e038715" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_59bea84f-a213-408c-8d9d-46b4c6692c9b" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_e97cd3c5-1888-415c-810d-ac082e038715" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_1ebe628a-29d9-46b7-a257-fabcaae61af9" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_59bea84f-a213-408c-8d9d-46b4c6692c9b" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_1ebe628a-29d9-46b7-a257-fabcaae61af9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_17055c3d-f9fb-4f5c-b84d-63c851d7b240" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorInstrumentosDePatrimonio_4cb290a1-dde2-4012-917e-c4513d9ad815" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorInstrumentosDePatrimonio"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_17055c3d-f9fb-4f5c-b84d-63c851d7b240" xlink:to="loc_repsol_CobrosPorInstrumentosDePatrimonio_4cb290a1-dde2-4012-917e-c4513d9ad815" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Emision_4d9af1b2-7ffc-4ea7-8c15-7fa9f889680e" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Emision"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_17055c3d-f9fb-4f5c-b84d-63c851d7b240" xlink:to="loc_repsol_Emision_4d9af1b2-7ffc-4ea7-8c15-7fa9f889680e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorInstrumentosDePatrimonio_7e281ccb-c956-456b-8044-82f03dc4a8c2" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorInstrumentosDePatrimonio"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_17055c3d-f9fb-4f5c-b84d-63c851d7b240" xlink:to="loc_repsol_PagosPorInstrumentosDePatrimonio_7e281ccb-c956-456b-8044-82f03dc4a8c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_DevolucionYAmortizacion_2337fd10-1ea0-4978-9b5d-afb2623cc678" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_DevolucionYAmortizacion"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_17055c3d-f9fb-4f5c-b84d-63c851d7b240" xlink:to="loc_repsol_DevolucionYAmortizacion_2337fd10-1ea0-4978-9b5d-afb2623cc678" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversiones_ae40232a-7d98-4531-9321-770c917f16b2" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_e1b84ff2-99d9-4eaa-8782-642f8bc155b0" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_PagoPorInversiones_ae40232a-7d98-4531-9321-770c917f16b2" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_e1b84ff2-99d9-4eaa-8782-642f8bc155b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_61ea6908-5bed-4674-a0a8-55aad98b7738" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_PagoPorInversiones_ae40232a-7d98-4531-9321-770c917f16b2" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_61ea6908-5bed-4674-a0a8-55aad98b7738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_f45bbbe5-f867-4d2a-9788-365b857d88aa" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_PagoPorInversiones_ae40232a-7d98-4531-9321-770c917f16b2" xlink:to="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_f45bbbe5-f867-4d2a-9788-365b857d88aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_6b28d9d3-d8af-429c-910d-fa29cfa6970f" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_459592d0-b58b-4f5d-a650-5dfb33dbf76b" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobroPorDesinversiones_6b28d9d3-d8af-429c-910d-fa29cfa6970f" xlink:to="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_459592d0-b58b-4f5d-a650-5dfb33dbf76b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_3be5bd63-1e8b-4cbc-9322-d6d8dc55cb42" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobroPorDesinversiones_6b28d9d3-d8af-429c-910d-fa29cfa6970f" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_3be5bd63-1e8b-4cbc-9322-d6d8dc55cb42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_1836c706-ea2f-4411-9e56-6d28dd642874" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobroPorDesinversiones_6b28d9d3-d8af-429c-910d-fa29cfa6970f" xlink:to="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_1836c706-ea2f-4411-9e56-6d28dd642874" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_c6775945-0d81-47f7-816f-9b12bee05524" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_4f6b43a6-78a1-4654-961a-4d48e2f8f049" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorLaEmisionDePasivosFinancieros"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_c6775945-0d81-47f7-816f-9b12bee05524" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_4f6b43a6-78a1-4654-961a-4d48e2f8f049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_1e2582be-0828-4516-a377-77f3fdd1b85f" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_c6775945-0d81-47f7-816f-9b12bee05524" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_1e2582be-0828-4516-a377-77f3fdd1b85f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_6530fb21-ee1b-40f8-96da-f7b1f4a0b7e5" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8f0a16e5-e698-4bcf-817b-7c2d1cf13077" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_6530fb21-ee1b-40f8-96da-f7b1f4a0b7e5" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8f0a16e5-e698-4bcf-817b-7c2d1cf13077" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_3a15e371-8789-4cf3-b55a-8effa7163021" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_6530fb21-ee1b-40f8-96da-f7b1f4a0b7e5" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_3a15e371-8789-4cf3-b55a-8effa7163021" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_1ca5c5e3-3d99-473c-ab7c-939d77cd5e9c" 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_6530fb21-ee1b-40f8-96da-f7b1f4a0b7e5" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_1ca5c5e3-3d99-473c-ab7c-939d77cd5e9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_5f44e3f5-814a-4bab-8566-4d7403bdbc19" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_6530fb21-ee1b-40f8-96da-f7b1f4a0b7e5" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_5f44e3f5-814a-4bab-8566-4d7403bdbc19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_58b95987-3149-4ebe-a141-27c067db13c1" 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_9c46dae1-5e7a-4b40-9c5b-1c94a9ea1900" 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_58b95987-3149-4ebe-a141-27c067db13c1" xlink:to="loc_ifrs-full_Cash_9c46dae1-5e7a-4b40-9c5b-1c94a9ea1900" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_622edc86-b126-4ff2-8b52-161e6b1e1caf" 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_58b95987-3149-4ebe-a141-27c067db13c1" xlink:to="loc_ifrs-full_CashEquivalents_622edc86-b126-4ff2-8b52-161e6b1e1caf" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
