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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:98246495-41f6-423a-b1a5-14dfcc979731,g:eec49481-8011-4224-85cc-0517e7816f01-->
<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-2022-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_EquityAndLiabilities_e2f65ae5-705f-4a1b-b35a-a069b1670f11" 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_NoncurrentLiabilities_8fab4922-ab60-45bb-9651-7d147a40b37a" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_e2f65ae5-705f-4a1b-b35a-a069b1670f11" xlink:to="loc_ifrs-full_NoncurrentLiabilities_8fab4922-ab60-45bb-9651-7d147a40b37a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_83602cc8-b5fe-45f5-a178-8ce0217e5ee5" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_e2f65ae5-705f-4a1b-b35a-a069b1670f11" xlink:to="loc_ifrs-full_Equity_83602cc8-b5fe-45f5-a178-8ce0217e5ee5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_ab0f07d7-ae60-4f94-bf6b-ac560902780f" 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_e2f65ae5-705f-4a1b-b35a-a069b1670f11" xlink:to="loc_ifrs-full_CurrentLiabilities_ab0f07d7-ae60-4f94-bf6b-ac560902780f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_850d0e10-0ad2-49ef-b33b-cb35e0d7cfa5" 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_NoncontrollingInterests_f71e3e76-bec8-45d6-849e-fe6ba29101f4" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_850d0e10-0ad2-49ef-b33b-cb35e0d7cfa5" xlink:to="loc_ifrs-full_NoncontrollingInterests_f71e3e76-bec8-45d6-849e-fe6ba29101f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_ee6c265d-dae1-4c6e-ae1a-ef57994715ab" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_850d0e10-0ad2-49ef-b33b-cb35e0d7cfa5" xlink:to="loc_repsol_FondosPropios_ee6c265d-dae1-4c6e-ae1a-ef57994715ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_a3ef434c-2db8-4237-8801-9da52b20fb9b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_850d0e10-0ad2-49ef-b33b-cb35e0d7cfa5" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_a3ef434c-2db8-4237-8801-9da52b20fb9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_39c15219-6944-459d-9ed0-788a21c0d4f5" 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_InvestmentAccountedForUsingEquityMethod_b29f0be9-a79d-4f4a-91af-35c1fff7d2c5" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_b29f0be9-a79d-4f4a-91af-35c1fff7d2c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_50d72d26-a905-45f6-a01c-6d601df40a70" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_50d72d26-a905-45f6-a01c-6d601df40a70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_aacf6bcb-e40e-4192-bf25-8608041423fe" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_aacf6bcb-e40e-4192-bf25-8608041423fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_739585e8-15b2-4dcc-b082-8bc3c299564b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_739585e8-15b2-4dcc-b082-8bc3c299564b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_e2b0f0ea-9841-40fc-bf07-b4edbfe77482" 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="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_DeferredTaxAssets_e2b0f0ea-9841-40fc-bf07-b4edbfe77482" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_a4f2d258-c288-4ae2-ae97-d3532e1bd4cc" 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="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_39c15219-6944-459d-9ed0-788a21c0d4f5" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_a4f2d258-c288-4ae2-ae97-d3532e1bd4cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_64b02144-8909-4614-b8ab-10c0012671a1" 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_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_1f9ccd2b-30bb-4559-98c4-11e3f571af4e" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_64b02144-8909-4614-b8ab-10c0012671a1" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_1f9ccd2b-30bb-4559-98c4-11e3f571af4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_ca6af4aa-49ab-42e0-b2e5-00e3f6aaf282" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_64b02144-8909-4614-b8ab-10c0012671a1" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_ca6af4aa-49ab-42e0-b2e5-00e3f6aaf282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_9f2d92ec-a5df-4334-8673-6659c608efc4" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_64b02144-8909-4614-b8ab-10c0012671a1" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_9f2d92ec-a5df-4334-8673-6659c608efc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_b71f03a3-df64-4008-8102-971eef909ae8" 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_64b02144-8909-4614-b8ab-10c0012671a1" xlink:to="loc_ifrs-full_CurrentProvisions_b71f03a3-df64-4008-8102-971eef909ae8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_1e926c58-480f-4fc4-b392-7a1e1a3e8d73" 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_CurrentAssets_43187ba6-858d-4cfc-81f5-91774dd4d2f1" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_1e926c58-480f-4fc4-b392-7a1e1a3e8d73" xlink:to="loc_ifrs-full_CurrentAssets_43187ba6-858d-4cfc-81f5-91774dd4d2f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_156a5414-4e18-4350-9175-fa6b9276e68b" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_1e926c58-480f-4fc4-b392-7a1e1a3e8d73" xlink:to="loc_ifrs-full_NoncurrentAssets_156a5414-4e18-4350-9175-fa6b9276e68b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_cae02847-8369-4f7e-b60e-2418b1a4e879" 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_NoncurrentProvisions_efe6d2cf-0a14-4493-b2fd-bd490092c38d" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_cae02847-8369-4f7e-b60e-2418b1a4e879" xlink:to="loc_ifrs-full_NoncurrentProvisions_efe6d2cf-0a14-4493-b2fd-bd490092c38d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_4196f4fc-c09a-44aa-884b-141f1fc62b28" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_cae02847-8369-4f7e-b60e-2418b1a4e879" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_4196f4fc-c09a-44aa-884b-141f1fc62b28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_ccf6d02a-4b78-4901-9288-ec45a9fde5d3" 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="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_cae02847-8369-4f7e-b60e-2418b1a4e879" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_ccf6d02a-4b78-4901-9288-ec45a9fde5d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_a30cdcaa-38df-4b87-adf9-6fc6ca9dacf8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cae02847-8369-4f7e-b60e-2418b1a4e879" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_a30cdcaa-38df-4b87-adf9-6fc6ca9dacf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_cb1dd052-ab5f-4927-b940-36100a8f7f9c" 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_CashAndCashEquivalents_7a1cbcd1-51a2-47e4-b062-6ce7aa334d1c" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_CashAndCashEquivalents_7a1cbcd1-51a2-47e4-b062-6ce7aa334d1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_83c334ac-b327-47c2-99e1-50d90a9945b2" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_Inventories_83c334ac-b327-47c2-99e1-50d90a9945b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets_bf7934aa-3526-4e7d-89fc-1f9e5041a213" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_OtherCurrentAssets_bf7934aa-3526-4e7d-89fc-1f9e5041a213" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables_12ec6058-d2a7-4552-a059-0c121cde4470" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables_12ec6058-d2a7-4552-a059-0c121cde4470" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentFinancialAssets_6de1ec78-876c-4f96-85e2-b7e04026a8a3" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_OtherCurrentFinancialAssets_6de1ec78-876c-4f96-85e2-b7e04026a8a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_da373a29-9fe2-40a5-8a30-26bef5ea4481" 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_cb1dd052-ab5f-4927-b940-36100a8f7f9c" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_da373a29-9fe2-40a5-8a30-26bef5ea4481" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_7f9e7ca9-5035-44b7-a39b-d064499d1496" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_6c4dd528-f1bd-472a-9679-43fdb71899a7" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_7f9e7ca9-5035-44b7-a39b-d064499d1496" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_6c4dd528-f1bd-472a-9679-43fdb71899a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_538f697a-7435-49ef-a051-fa25e283c217" 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_ProfitLossAttributableToOwnersOfParent_7f9e7ca9-5035-44b7-a39b-d064499d1496" xlink:to="loc_ifrs-full_ProfitLoss_538f697a-7435-49ef-a051-fa25e283c217" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_15b6f30d-ed3c-419b-aba4-4a324751e23a" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_15b6f30d-ed3c-419b-aba4-4a324751e23a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossOnFinancialAssets_4d1b84e1-dbeb-4afa-bf80-bd57c6b569c2" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:to="loc_ifrs-full_ImpairmentLossOnFinancialAssets_4d1b84e1-dbeb-4afa-bf80-bd57c6b569c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_a729247d-1752-4fa4-a32f-9d239a1dc862" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:to="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_a729247d-1752-4fa4-a32f-9d239a1dc862" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_533dd679-1596-417d-91a1-d3ff1d0ec16c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_533dd679-1596-417d-91a1-d3ff1d0ec16c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestRevenueExpense_d17e81f4-7676-452f-9e3b-e55b52628cea" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_99cf1fe0-6192-4ae0-98d4-087421325bcd" xlink:to="loc_ifrs-full_InterestRevenueExpense_d17e81f4-7676-452f-9e3b-e55b52628cea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" 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_ifrs-full_EmployeeBenefitsExpense_858b5d8c-13d0-469a-9016-5388c3c58107" 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_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_858b5d8c-13d0-469a-9016-5388c3c58107" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_5d2a4f2b-a1cd-4c17-9c7b-0edd651a3595" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_Suministros"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_repsol_Suministros_5d2a4f2b-a1cd-4c17-9c7b-0edd651a3595" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_a25f952b-0ad5-483b-987c-5ebcedec2374" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_a25f952b-0ad5-483b-987c-5ebcedec2374" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_c8409932-9d5d-4266-955b-83a4095e6bdc" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_c8409932-9d5d-4266-955b-83a4095e6bdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_ded1877c-28c7-42d6-80e7-7c29240865c6" 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="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_ded1877c-28c7-42d6-80e7-7c29240865c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_ff1ca733-6b1f-4a8f-ab2d-deed5e779c4a" 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="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_ff1ca733-6b1f-4a8f-ab2d-deed5e779c4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromRenderingOfServices_3d4f9be9-1121-444d-b515-61224c6b3643" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_RevenueFromRenderingOfServices_3d4f9be9-1121-444d-b515-61224c6b3643" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_7d8ebdb4-3e6c-4a7c-a82d-3d75dde9082c" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_RevenueFromSaleOfGoods"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_7d8ebdb4-3e6c-4a7c-a82d-3d75dde9082c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TransportationExpense_028049e4-b87b-4721-8da5-c968b35a8dcf" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_TransportationExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_TransportationExpense_028049e4-b87b-4721-8da5-c968b35a8dcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_16461da5-0adb-46e3-b788-6d80e963717f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_16461da5-0adb-46e3-b788-6d80e963717f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense_6ab64e12-1ce2-4cfe-91ca-dd6ea89da4ce" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherOperatingIncomeExpense"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_589b8630-396f-4039-bf3e-41ee31818574" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense_6ab64e12-1ce2-4cfe-91ca-dd6ea89da4ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_7bba47a8-a58f-4743-9c96-2ee0991c7517" 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_c8698f2f-7fd2-4538-9de5-5660d707dfc6" 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_7bba47a8-a58f-4743-9c96-2ee0991c7517" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_c8698f2f-7fd2-4538-9de5-5660d707dfc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_11e5165f-17a7-4649-9336-e7ca42f52bd0" 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_7bba47a8-a58f-4743-9c96-2ee0991c7517" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_11e5165f-17a7-4649-9336-e7ca42f52bd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_87c7850b-a80c-4374-8ade-8ffe6c38aa68" 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_8c143ccb-e3be-48c2-a9e4-1cc76883353b" 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_87c7850b-a80c-4374-8ade-8ffe6c38aa68" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_8c143ccb-e3be-48c2-a9e4-1cc76883353b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_5d5d60f8-10be-4142-9167-4c625e614eff" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_87c7850b-a80c-4374-8ade-8ffe6c38aa68" xlink:to="loc_ifrs-full_FinanceIncomeCost_5d5d60f8-10be-4142-9167-4c625e614eff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_9ba5f8dc-b599-4235-a6df-f4478e372e54" 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_87c7850b-a80c-4374-8ade-8ffe6c38aa68" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_9ba5f8dc-b599-4235-a6df-f4478e372e54" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_a6c04987-bc7f-4005-87e2-52c3e9ecf567" 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_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_504e43ed-3df8-46d6-8761-fd6ac0c9ea2b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_a6c04987-bc7f-4005-87e2-52c3e9ecf567" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_504e43ed-3df8-46d6-8761-fd6ac0c9ea2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_71891dda-ffc4-4187-9ac1-a59286a38f72" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_a6c04987-bc7f-4005-87e2-52c3e9ecf567" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_71891dda-ffc4-4187-9ac1-a59286a38f72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_606849c0-af7c-4978-bf30-1fdefe5dccd0" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_a6c04987-bc7f-4005-87e2-52c3e9ecf567" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_606849c0-af7c-4978-bf30-1fdefe5dccd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_ddae1f43-b5c4-41c1-8899-11fb5d650a84" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_a6c04987-bc7f-4005-87e2-52c3e9ecf567" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_ddae1f43-b5c4-41c1-8899-11fb5d650a84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_ee46e607-70a0-48f1-81be-4d2712f03e47" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_c2d75a7a-894d-41b0-a488-5775593eca77" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_ee46e607-70a0-48f1-81be-4d2712f03e47" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_c2d75a7a-894d-41b0-a488-5775593eca77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_70684481-3961-4899-9521-f7d1c4d9f53e" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_ee46e607-70a0-48f1-81be-4d2712f03e47" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_70684481-3961-4899-9521-f7d1c4d9f53e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_521bfc3c-8a8a-4a62-af42-ce7642a3a467" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_8533f586-8667-4eff-9925-112305fbc904" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_521bfc3c-8a8a-4a62-af42-ce7642a3a467" xlink:to="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_8533f586-8667-4eff-9925-112305fbc904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_GananciasPerdidasPorValoracion_9e517dd7-26da-46ca-b872-3cff3c974119" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_GananciasPerdidasPorValoracion"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_521bfc3c-8a8a-4a62-af42-ce7642a3a467" xlink:to="loc_repsol_GananciasPerdidasPorValoracion_9e517dd7-26da-46ca-b872-3cff3c974119" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_0fad2067-9bc0-4632-92a4-d4ca192d7016" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_3293e085-3baf-497d-9c6a-f7507c3561d3" 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_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_0fad2067-9bc0-4632-92a4-d4ca192d7016" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_3293e085-3baf-497d-9c6a-f7507c3561d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_bd026eff-4054-43a4-b051-2d100bebd04c" 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="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_0fad2067-9bc0-4632-92a4-d4ca192d7016" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_bd026eff-4054-43a4-b051-2d100bebd04c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_c43e161a-a0b2-450b-9b5f-2af9236477b8" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_95d8ec85-4cbf-4679-9b45-16fa41b6bb86" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_c43e161a-a0b2-450b-9b5f-2af9236477b8" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_95d8ec85-4cbf-4679-9b45-16fa41b6bb86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_aabd7090-5e62-46f0-8c5b-4c7b29756e1b" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_c43e161a-a0b2-450b-9b5f-2af9236477b8" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_aabd7090-5e62-46f0-8c5b-4c7b29756e1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2617a086-be06-4643-a795-98ca50e16013" 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_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_90dfed13-9ed6-46d8-8269-4da5629d61d9" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2617a086-be06-4643-a795-98ca50e16013" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_90dfed13-9ed6-46d8-8269-4da5629d61d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_6be98127-17a7-40f7-aca1-af69173db8e0" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2617a086-be06-4643-a795-98ca50e16013" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_6be98127-17a7-40f7-aca1-af69173db8e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_7983684a-ffa7-493b-b30e-9eebbbf56ded" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2617a086-be06-4643-a795-98ca50e16013" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_7983684a-ffa7-493b-b30e-9eebbbf56ded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_eed8c303-dfc0-4ea6-84ec-47752fbf166f" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_2617a086-be06-4643-a795-98ca50e16013" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_eed8c303-dfc0-4ea6-84ec-47752fbf166f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_42e6b03a-f790-4fcf-a442-dd784c7736a7" 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_02010ebf-03ff-4a75-aacc-990aa5cf96fa" 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_42e6b03a-f790-4fcf-a442-dd784c7736a7" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_02010ebf-03ff-4a75-aacc-990aa5cf96fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_de0a6980-8ff4-4a2e-aa98-f4324ef70a05" 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_42e6b03a-f790-4fcf-a442-dd784c7736a7" xlink:to="loc_ifrs-full_ProfitLoss_de0a6980-8ff4-4a2e-aa98-f4324ef70a05" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_f4f7535d-9913-4a7d-89f2-7fb9da44e235" 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_ComprehensiveIncomeAttributableToNoncontrollingInterests_e20f63a8-a15f-4542-8fe0-1683f963087c" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_f4f7535d-9913-4a7d-89f2-7fb9da44e235" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_e20f63a8-a15f-4542-8fe0-1683f963087c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_b87ed7c8-168f-4c2c-8260-b2533bc403b5" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_f4f7535d-9913-4a7d-89f2-7fb9da44e235" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_b87ed7c8-168f-4c2c-8260-b2533bc403b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodeflujosdeefectivomtodoindirectoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_994ec652-87e3-499a-ab54-2804165e1125" 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_CashFlowsFromUsedInOperatingActivities_abd5bcb8-b315-4a67-a692-7735f4ca6480" 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="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_994ec652-87e3-499a-ab54-2804165e1125" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_abd5bcb8-b315-4a67-a692-7735f4ca6480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_6bf59416-e6f0-4de2-a113-0a8a214b065c" 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="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_994ec652-87e3-499a-ab54-2804165e1125" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_6bf59416-e6f0-4de2-a113-0a8a214b065c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8a13e924-d4ef-4cf5-8101-a346e64d72c7" 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_994ec652-87e3-499a-ab54-2804165e1125" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_8a13e924-d4ef-4cf5-8101-a346e64d72c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_6b8fe1b8-5f38-4eba-8437-a0a988f787b5" 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="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_994ec652-87e3-499a-ab54-2804165e1125" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_6b8fe1b8-5f38-4eba-8437-a0a988f787b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_cc75ffcb-c9e2-40ba-969a-8044909e45df" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_3df30aa0-80b6-4dbb-b6c6-f606e3165b4d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cc75ffcb-c9e2-40ba-969a-8044909e45df" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_3df30aa0-80b6-4dbb-b6c6-f606e3165b4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_256eba34-b2bd-4614-b8c4-91e40da58e34" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_cc75ffcb-c9e2-40ba-969a-8044909e45df" xlink:to="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_256eba34-b2bd-4614-b8c4-91e40da58e34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_f5d7de74-3943-4ee3-83d4-81a595dcc372" 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_ifrs-full_ProfitLossBeforeTax_9c58ab49-30d9-4273-8388-ef393857dc66" 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_CashFlowsFromUsedInOperatingActivities_f5d7de74-3943-4ee3-83d4-81a595dcc372" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_9c58ab49-30d9-4273-8388-ef393857dc66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_1254dc73-54b0-441e-a0a0-fb1881b365af" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_f5d7de74-3943-4ee3-83d4-81a595dcc372" xlink:to="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_1254dc73-54b0-441e-a0a0-fb1881b365af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_257d9091-12ec-43e7-a37e-1b6439dab3ae" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_f5d7de74-3943-4ee3-83d4-81a595dcc372" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_257d9091-12ec-43e7-a37e-1b6439dab3ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_aa5b48ec-ba84-4f25-8143-8f8efb10a22a" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_f5d7de74-3943-4ee3-83d4-81a595dcc372" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_aa5b48ec-ba84-4f25-8143-8f8efb10a22a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_d8da4164-4698-432b-bd18-332916fe6b92" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_ccd2c40f-73f8-41a8-bba7-e1bfd712321d" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_d8da4164-4698-432b-bd18-332916fe6b92" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_ccd2c40f-73f8-41a8-bba7-e1bfd712321d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_e8eb7b48-85cf-4ad5-a62d-fed3428eebbe" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_d8da4164-4698-432b-bd18-332916fe6b92" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_e8eb7b48-85cf-4ad5-a62d-fed3428eebbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_2696dd16-c4e4-4708-9d0b-2bd40f0dce85" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_d8da4164-4698-432b-bd18-332916fe6b92" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_2696dd16-c4e4-4708-9d0b-2bd40f0dce85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_ca53102b-eb91-43c0-a873-001ddc24f018" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_CobroPorDesinversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_6b8754f2-15c4-429b-b4e4-5b8e92dcf7e8" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_ca53102b-eb91-43c0-a873-001ddc24f018" xlink:to="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_6b8754f2-15c4-429b-b4e4-5b8e92dcf7e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_9b626a2c-e133-4a8d-8c7f-26df679b2713" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_ca53102b-eb91-43c0-a873-001ddc24f018" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_9b626a2c-e133-4a8d-8c7f-26df679b2713" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_b103c8b9-c2b0-477b-953b-5389ac934fa1" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_ca53102b-eb91-43c0-a873-001ddc24f018" xlink:to="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_b103c8b9-c2b0-477b-953b-5389ac934fa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_3e1ba55e-7fe0-4e5a-9380-23801573de03" 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_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_7a3a36ce-a98e-4ce3-ba23-4e0221858232" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_3e1ba55e-7fe0-4e5a-9380-23801573de03" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_7a3a36ce-a98e-4ce3-ba23-4e0221858232" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_0cb058e0-b736-42c5-aae5-96575fc4a36f" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_3e1ba55e-7fe0-4e5a-9380-23801573de03" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_0cb058e0-b736-42c5-aae5-96575fc4a36f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_a0909364-e7e9-49fd-9e34-183243df8f0e" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_3e1ba55e-7fe0-4e5a-9380-23801573de03" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_a0909364-e7e9-49fd-9e34-183243df8f0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_4b1534d1-ad16-4137-b229-e56c1d78bb83" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_3e1ba55e-7fe0-4e5a-9380-23801573de03" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_4b1534d1-ad16-4137-b229-e56c1d78bb83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_1750ea50-debe-4763-864f-05250b089ef3" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_3e1ba55e-7fe0-4e5a-9380-23801573de03" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_1750ea50-debe-4763-864f-05250b089ef3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_0944898f-fbe8-40d7-ad1e-2f3a7977ba1b" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_41992d73-8e54-450b-959d-86f2f388796c" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_0944898f-fbe8-40d7-ad1e-2f3a7977ba1b" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_41992d73-8e54-450b-959d-86f2f388796c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_6cf61a70-1755-41df-b87e-28e12b21ed81" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_0944898f-fbe8-40d7-ad1e-2f3a7977ba1b" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_6cf61a70-1755-41df-b87e-28e12b21ed81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_63c3e5cc-0ef9-4c69-a501-ee4b48978910" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_52e325ff-5aec-49e0-bc00-0c08bebd7992" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_63c3e5cc-0ef9-4c69-a501-ee4b48978910" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_52e325ff-5aec-49e0-bc00-0c08bebd7992" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_9e91893f-72f2-43a7-b436-dd6d45812916" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_63c3e5cc-0ef9-4c69-a501-ee4b48978910" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_9e91893f-72f2-43a7-b436-dd6d45812916" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_7ef456cc-737f-4698-9870-2e3c05bb2740" 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_138ecc38-8955-40d9-afa0-53a6a9d7a510" 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_7ef456cc-737f-4698-9870-2e3c05bb2740" xlink:to="loc_ifrs-full_Cash_138ecc38-8955-40d9-afa0-53a6a9d7a510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_b8e44bb6-9c6c-4d2e-a715-5decce53e4c0" 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_7ef456cc-737f-4698-9870-2e3c05bb2740" xlink:to="loc_ifrs-full_CashEquivalents_b8e44bb6-9c6c-4d2e-a715-5decce53e4c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_41738343-7b0d-4365-8ab6-e19dfde69e12" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_8a2de96b-1eeb-4f37-98ff-07c41d241799" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_41738343-7b0d-4365-8ab6-e19dfde69e12" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_8a2de96b-1eeb-4f37-98ff-07c41d241799" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_78020825-e1e0-45a1-bcfa-1cb5169ac2be" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_41738343-7b0d-4365-8ab6-e19dfde69e12" xlink:to="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_78020825-e1e0-45a1-bcfa-1cb5169ac2be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_7cddcda9-acfe-4230-a2a2-c9da9324d84a" 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_repsol_PagoPorInversiones_0ae8adae-dc67-48f2-aea9-6d4fd905d553" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_7cddcda9-acfe-4230-a2a2-c9da9324d84a" xlink:to="loc_repsol_PagoPorInversiones_0ae8adae-dc67-48f2-aea9-6d4fd905d553" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_ccc71e3e-2257-43db-96e6-8a0db1ca0a3b" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_7cddcda9-acfe-4230-a2a2-c9da9324d84a" xlink:to="loc_repsol_CobroPorDesinversiones_ccc71e3e-2257-43db-96e6-8a0db1ca0a3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_4ca0afd1-7f76-404f-8c6f-3b5a98529560" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_7cddcda9-acfe-4230-a2a2-c9da9324d84a" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_4ca0afd1-7f76-404f-8c6f-3b5a98529560" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_1cf0468a-62ae-45bd-8c8c-4ce674ac5937" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorInstrumentosDePatrimonio_08065728-bc70-44d8-a158-2fdacad9ad5c" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_1cf0468a-62ae-45bd-8c8c-4ce674ac5937" xlink:to="loc_repsol_CobrosPorInstrumentosDePatrimonio_08065728-bc70-44d8-a158-2fdacad9ad5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Emision_2a7ab3f3-9cc0-4170-8820-f23febae0272" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_1cf0468a-62ae-45bd-8c8c-4ce674ac5937" xlink:to="loc_repsol_Emision_2a7ab3f3-9cc0-4170-8820-f23febae0272" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorInstrumentosDePatrimonio_ac750b3c-ce0f-4f20-8848-a816ec102667" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_1cf0468a-62ae-45bd-8c8c-4ce674ac5937" xlink:to="loc_repsol_PagosPorInstrumentosDePatrimonio_ac750b3c-ce0f-4f20-8848-a816ec102667" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_DevolucionYAmortizacion_5685020c-aa76-410c-8f05-6f24e59b21f0" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_1cf0468a-62ae-45bd-8c8c-4ce674ac5937" xlink:to="loc_repsol_DevolucionYAmortizacion_5685020c-aa76-410c-8f05-6f24e59b21f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversiones_dac5ddc2-00e3-421c-b441-efdd5a0a5a8e" xlink:href="BSYCX13Y0NOTV14V9N85-2022-12-31.xsd#repsol_PagoPorInversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_1bd046da-807b-4c27-9958-c81f79f7f333" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_dac5ddc2-00e3-421c-b441-efdd5a0a5a8e" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_1bd046da-807b-4c27-9958-c81f79f7f333" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_e64229b7-12a6-40c7-b66e-9b0d7e283e8e" xlink:href="BSYCX13Y0NOTV14V9N85-2022-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_dac5ddc2-00e3-421c-b441-efdd5a0a5a8e" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_e64229b7-12a6-40c7-b66e-9b0d7e283e8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_aac9e4cc-b671-4ea9-96bc-af2b235168cb" xlink:href="http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.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_dac5ddc2-00e3-421c-b441-efdd5a0a5a8e" xlink:to="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_aac9e4cc-b671-4ea9-96bc-af2b235168cb" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
