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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:4130ee59-189d-4ca4-be9b-622de3ee722c,g:f7f12a82-7375-4c57-a6b9-d2a49bee1922-->
<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-2023-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_9ac0fc52-08e4-49a4-9267-229849af3cf3" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_c87bacda-c277-449d-aa47-04ad9867d68f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_9ac0fc52-08e4-49a4-9267-229849af3cf3" xlink:to="loc_ifrs-full_NoncurrentLiabilities_c87bacda-c277-449d-aa47-04ad9867d68f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_095d30c1-2a61-4b67-bd32-17a0f1a6ac73" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_9ac0fc52-08e4-49a4-9267-229849af3cf3" xlink:to="loc_ifrs-full_Equity_095d30c1-2a61-4b67-bd32-17a0f1a6ac73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_562137d6-9d50-4730-ac02-8b8b6e6bcce5" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_9ac0fc52-08e4-49a4-9267-229849af3cf3" xlink:to="loc_ifrs-full_CurrentLiabilities_562137d6-9d50-4730-ac02-8b8b6e6bcce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_35fdc758-661e-41c5-bb89-9fbf410ab284" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_23676078-f712-4e69-847f-3211ad1a36db" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_35fdc758-661e-41c5-bb89-9fbf410ab284" xlink:to="loc_ifrs-full_NoncurrentProvisions_23676078-f712-4e69-847f-3211ad1a36db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_b9eccfe9-9fa4-4aec-b381-4deb4877ae95" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_35fdc758-661e-41c5-bb89-9fbf410ab284" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_b9eccfe9-9fa4-4aec-b381-4deb4877ae95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_fb02d42a-bc73-4c03-a5d6-3870ed7255bf" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_35fdc758-661e-41c5-bb89-9fbf410ab284" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_fb02d42a-bc73-4c03-a5d6-3870ed7255bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_f9a06b0c-e768-4e64-8255-c7a9c7eda755" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_35fdc758-661e-41c5-bb89-9fbf410ab284" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_f9a06b0c-e768-4e64-8255-c7a9c7eda755" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_e6ced12a-ee15-4dd5-a4ce-7f21d66d9671" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_9503907f-2bfb-4214-9365-cafded158749" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_e6ced12a-ee15-4dd5-a4ce-7f21d66d9671" xlink:to="loc_ifrs-full_NoncontrollingInterests_9503907f-2bfb-4214-9365-cafded158749" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_79a01d68-ac67-4ea1-b261-9050fb2c57c1" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_e6ced12a-ee15-4dd5-a4ce-7f21d66d9671" xlink:to="loc_repsol_FondosPropios_79a01d68-ac67-4ea1-b261-9050fb2c57c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_98f77008-3437-43dc-8523-001f825fd666" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_e6ced12a-ee15-4dd5-a4ce-7f21d66d9671" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_98f77008-3437-43dc-8523-001f825fd666" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_74f4745d-3ca7-4940-b289-addb08781413" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_45d5eb7d-bf61-4748-9aca-532cff98aaf9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_45d5eb7d-bf61-4748-9aca-532cff98aaf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_9c4f1000-90ef-4f62-809a-cb85c5a8f9e6" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_9c4f1000-90ef-4f62-809a-cb85c5a8f9e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_73ffa633-fdd3-43b0-9da2-2af33ff54582" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_73ffa633-fdd3-43b0-9da2-2af33ff54582" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_2afaca1e-ff4a-4b94-a438-0622713e9f1e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_2afaca1e-ff4a-4b94-a438-0622713e9f1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_13a1efb6-0e82-4c41-b680-3199a64f2abc" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_DeferredTaxAssets_13a1efb6-0e82-4c41-b680-3199a64f2abc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_477dcf24-f738-4a1d-ab46-a6ea131d5ae7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_74f4745d-3ca7-4940-b289-addb08781413" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_477dcf24-f738-4a1d-ab46-a6ea131d5ae7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_f729dafa-19c1-42c2-949a-30272b3e4f32" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_84046cb5-f2d9-46d5-bcda-0dbada0d308d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_f729dafa-19c1-42c2-949a-30272b3e4f32" xlink:to="loc_ifrs-full_CurrentAssets_84046cb5-f2d9-46d5-bcda-0dbada0d308d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_fa5b577c-7029-4a9a-833f-5b17c9fcb525" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_f729dafa-19c1-42c2-949a-30272b3e4f32" xlink:to="loc_ifrs-full_NoncurrentAssets_fa5b577c-7029-4a9a-833f-5b17c9fcb525" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_dc91cee9-9bbe-4749-9659-e1a9697cc364" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:to="loc_ifrs-full_CashAndCashEquivalents_dc91cee9-9bbe-4749-9659-e1a9697cc364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_65148e92-f095-4ae0-9aaf-a74449da80a1" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:to="loc_ifrs-full_Inventories_65148e92-f095-4ae0-9aaf-a74449da80a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets_1b9886a2-612e-4bd0-aff4-d949a5286954" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:to="loc_ifrs-full_OtherCurrentAssets_1b9886a2-612e-4bd0-aff4-d949a5286954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables_af1378b4-502b-49ff-9155-67fd43c51671" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables_af1378b4-502b-49ff-9155-67fd43c51671" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentFinancialAssets_e26f3b08-9a06-4e13-bb8d-8d9da856ef31" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c3d1c37d-4856-4e13-bd4a-841995a04027" xlink:to="loc_ifrs-full_OtherCurrentFinancialAssets_e26f3b08-9a06-4e13-bb8d-8d9da856ef31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_94c691d9-2655-4ed5-8e75-950c48778329" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_bc341fb1-3659-409f-a3ac-081d019fbb2a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_TradeAndOtherCurrentPayables"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_94c691d9-2655-4ed5-8e75-950c48778329" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_bc341fb1-3659-409f-a3ac-081d019fbb2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_af329d4b-9cca-453e-9b95-164660c9890b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentFinancialLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_94c691d9-2655-4ed5-8e75-950c48778329" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_af329d4b-9cca-453e-9b95-164660c9890b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_f3293fc6-cc75-4a6b-a93e-4f3595d4a74b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CurrentProvisions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_94c691d9-2655-4ed5-8e75-950c48778329" xlink:to="loc_ifrs-full_CurrentProvisions_f3293fc6-cc75-4a6b-a93e-4f3595d4a74b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_ProfitLoss_17a3cb8c-9101-42fa-91cf-5529ddd2b379" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_e4ed6848-fe78-4d7d-ab9a-05e2246e40e9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_17a3cb8c-9101-42fa-91cf-5529ddd2b379" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_e4ed6848-fe78-4d7d-ab9a-05e2246e40e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_767ef4b9-5c7e-4226-9209-62db56924257" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_17a3cb8c-9101-42fa-91cf-5529ddd2b379" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_767ef4b9-5c7e-4226-9209-62db56924257" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_b050c648-179e-46c4-973b-ca3d1ef9461f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_b050c648-179e-46c4-973b-ca3d1ef9461f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossOnFinancialAssets_0692dfa3-a0ee-4268-a45b-f6db045ba13d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_ImpairmentLossOnFinancialAssets_0692dfa3-a0ee-4268-a45b-f6db045ba13d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_240fb47d-f781-4405-9688-e556cb798b32" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_240fb47d-f781-4405-9688-e556cb798b32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_7d282bc6-4269-4006-b8e3-04eff13c86ce" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_7d282bc6-4269-4006-b8e3-04eff13c86ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestExpense_d56a978b-ec05-4409-b506-1db4c64b0f6b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_InterestExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_InterestExpense_d56a978b-ec05-4409-b506-1db4c64b0f6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromInterest_fbc3a946-0ddb-4e5a-b50d-fa839ee0f697" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_RevenueFromInterest"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_a30061b5-34f5-4eee-b7c8-2b938561a02d" xlink:to="loc_ifrs-full_RevenueFromInterest_fbc3a946-0ddb-4e5a-b50d-fa839ee0f697" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_6819c010-8a5e-43cc-998f-50e30ccb91d6" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_410ce1a9-6323-4f33-820b-66ef6708cb51" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6819c010-8a5e-43cc-998f-50e30ccb91d6" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_410ce1a9-6323-4f33-820b-66ef6708cb51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_47ec7ca1-26a1-49eb-9277-7163f9614679" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6819c010-8a5e-43cc-998f-50e30ccb91d6" xlink:to="loc_ifrs-full_ProfitLoss_47ec7ca1-26a1-49eb-9277-7163f9614679" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_b83b073e-4e70-429f-b2cd-19426ae44079" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_b83b073e-4e70-429f-b2cd-19426ae44079" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_b70e851e-476b-4fa7-90d7-7654cadb9844" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_repsol_Suministros_b70e851e-476b-4fa7-90d7-7654cadb9844" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_918d5de8-9401-41c9-a8b5-eaa4e2e3789f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_918d5de8-9401-41c9-a8b5-eaa4e2e3789f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_da2e8000-a162-43ae-90e2-6aa1c418838a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_da2e8000-a162-43ae-90e2-6aa1c418838a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_a0e6bc67-f75d-45f0-ba76-b5c61a48fac1" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_a0e6bc67-f75d-45f0-ba76-b5c61a48fac1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_59ef4a97-405f-4c37-85bc-d9c024bf026e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_59ef4a97-405f-4c37-85bc-d9c024bf026e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromRenderingOfServices_62467d12-7169-4f65-abee-79cfce7e3cc8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_RevenueFromRenderingOfServices_62467d12-7169-4f65-abee-79cfce7e3cc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_9f4d58eb-67b1-4cfa-9481-aab7647fe4a5" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_9f4d58eb-67b1-4cfa-9481-aab7647fe4a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TransportationExpense_b63a9f34-9f1d-4de1-9ba6-aa199ef31eed" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_TransportationExpense_b63a9f34-9f1d-4de1-9ba6-aa199ef31eed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_72c28117-2b0a-45a4-a671-8a67e73e6d3a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_72c28117-2b0a-45a4-a671-8a67e73e6d3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense_e9f687be-5d59-4297-be3e-d3a21f5d2530" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_1225da0f-b3d3-46c7-8677-1fec4c68d4a7" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense_e9f687be-5d59-4297-be3e-d3a21f5d2530" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_0e94cdc5-7c50-4411-9e21-ff00ac08d97b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_c500fd38-82e8-4ce8-bfc7-5cf166adb1e9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_0e94cdc5-7c50-4411-9e21-ff00ac08d97b" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_c500fd38-82e8-4ce8-bfc7-5cf166adb1e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_6054d374-6a55-4512-87ee-cc16564b4081" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_0e94cdc5-7c50-4411-9e21-ff00ac08d97b" xlink:to="loc_ifrs-full_FinanceIncomeCost_6054d374-6a55-4512-87ee-cc16564b4081" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_d78dd6bd-bd55-4412-992d-d06489f97f55" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_0e94cdc5-7c50-4411-9e21-ff00ac08d97b" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_d78dd6bd-bd55-4412-992d-d06489f97f55" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_89b25010-6b5d-45f7-8e4e-938f165aad57" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_1112ad1b-b473-44c7-b4df-ffa08a06d3d1" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_89b25010-6b5d-45f7-8e4e-938f165aad57" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_1112ad1b-b473-44c7-b4df-ffa08a06d3d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_7305a0bb-2f72-4581-b65a-5933fc365bce" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_89b25010-6b5d-45f7-8e4e-938f165aad57" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_7305a0bb-2f72-4581-b65a-5933fc365bce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_3505cc03-2d2c-4bc7-956e-3320c9d937f7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_89b25010-6b5d-45f7-8e4e-938f165aad57" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_3505cc03-2d2c-4bc7-956e-3320c9d937f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_ea593a07-eb57-4979-adeb-60082befad14" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_89b25010-6b5d-45f7-8e4e-938f165aad57" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_ea593a07-eb57-4979-adeb-60082befad14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_8b0b8f15-5408-423b-898a-a9c67906457f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_1b4b7402-78a0-4e49-b85d-9535705e1185" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_8b0b8f15-5408-423b-898a-a9c67906457f" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_1b4b7402-78a0-4e49-b85d-9535705e1185" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_3bc0d8e4-433d-43cf-a68f-34b697bb1f57" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_8b0b8f15-5408-423b-898a-a9c67906457f" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_3bc0d8e4-433d-43cf-a68f-34b697bb1f57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_7c4f7b28-3710-411c-a066-7d3d09aa7b1b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_42945305-2111-41ba-9999-104990136597" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_7c4f7b28-3710-411c-a066-7d3d09aa7b1b" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_42945305-2111-41ba-9999-104990136597" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_62177e8d-6d5a-4249-a13c-fff605de5dfa" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_7c4f7b28-3710-411c-a066-7d3d09aa7b1b" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_62177e8d-6d5a-4249-a13c-fff605de5dfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_c833140d-d136-4ff0-bdb4-fc3a95afb9f2" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_75b9bdfb-6d0a-4464-852e-cec26cd14b32" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c833140d-d136-4ff0-bdb4-fc3a95afb9f2" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_75b9bdfb-6d0a-4464-852e-cec26cd14b32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_0ce31ba9-a158-4540-a8ec-92d73e2f1a91" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_c833140d-d136-4ff0-bdb4-fc3a95afb9f2" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_0ce31ba9-a158-4540-a8ec-92d73e2f1a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_345a305c-64cc-45cc-8099-cebe04d0e111" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_28bc7509-5404-4916-831a-339a3c5c575d" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_345a305c-64cc-45cc-8099-cebe04d0e111" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_28bc7509-5404-4916-831a-339a3c5c575d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_53c237b5-c231-4596-8d5e-598fdb57eebf" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_345a305c-64cc-45cc-8099-cebe04d0e111" xlink:to="loc_ifrs-full_ProfitLoss_53c237b5-c231-4596-8d5e-598fdb57eebf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_6448478c-cf4f-49de-8ce2-753bfae70797" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_44146c06-8463-4bba-82e9-7e2dc2530322" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6448478c-cf4f-49de-8ce2-753bfae70797" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_44146c06-8463-4bba-82e9-7e2dc2530322" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_0b933661-f69a-4532-b02b-0f8b2004d157" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6448478c-cf4f-49de-8ce2-753bfae70797" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_0b933661-f69a-4532-b02b-0f8b2004d157" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_4ab7149b-f3ef-4bef-9765-5ff89b5358d7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6448478c-cf4f-49de-8ce2-753bfae70797" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_4ab7149b-f3ef-4bef-9765-5ff89b5358d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_2362b0e1-71d6-470e-b41d-33481b25a687" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_6448478c-cf4f-49de-8ce2-753bfae70797" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_2362b0e1-71d6-470e-b41d-33481b25a687" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_fe9254d2-74c5-4edd-8650-6446f68a4150" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_23dfdf8a-fb55-483b-a22a-0a847cce4e3c" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_fe9254d2-74c5-4edd-8650-6446f68a4150" xlink:to="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_23dfdf8a-fb55-483b-a22a-0a847cce4e3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_GananciasPerdidasPorValoracion_01f6cc94-21df-4dd5-8be8-a537aeea8ded" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_fe9254d2-74c5-4edd-8650-6446f68a4150" xlink:to="loc_repsol_GananciasPerdidasPorValoracion_01f6cc94-21df-4dd5-8be8-a537aeea8ded" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_7066a541-3181-4278-9f36-429f42b16611" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_05208563-3af2-425b-9dd8-fb570cdf1b6b" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_7066a541-3181-4278-9f36-429f42b16611" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_05208563-3af2-425b-9dd8-fb570cdf1b6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_48ed4bcf-524f-4c14-b347-2bcc36a74ef8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_7066a541-3181-4278-9f36-429f42b16611" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_48ed4bcf-524f-4c14-b347-2bcc36a74ef8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodeflujosdeefectivomtodoindirectoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_AdjustmentsForReconcileProfitLoss_ce2f067f-b4bf-49d7-a3b9-3b8624f5bd02" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_01c05b5b-15c5-4ec5-abb0-f6573de37240" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_ce2f067f-b4bf-49d7-a3b9-3b8624f5bd02" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_01c05b5b-15c5-4ec5-abb0-f6573de37240" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_50d82ff0-e40e-41b0-a4a1-c67084e2847e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_ce2f067f-b4bf-49d7-a3b9-3b8624f5bd02" xlink:to="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_50d82ff0-e40e-41b0-a4a1-c67084e2847e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_b20126e6-0786-421e-8a76-f670349d2a6e" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_0ebe9a42-0348-4455-84ef-c4ab0acc39b8" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_b20126e6-0786-421e-8a76-f670349d2a6e" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_0ebe9a42-0348-4455-84ef-c4ab0acc39b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_aca2790a-eedc-48fe-bedc-6d5759fece7f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_b20126e6-0786-421e-8a76-f670349d2a6e" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_aca2790a-eedc-48fe-bedc-6d5759fece7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_dc1c0ba2-cb2d-42de-a84f-306a5d76c8c0" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorInstrumentosDePatrimonio_95d9d5d7-d55b-4878-a164-9c8cdc49a4cf" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_dc1c0ba2-cb2d-42de-a84f-306a5d76c8c0" xlink:to="loc_repsol_CobrosPorInstrumentosDePatrimonio_95d9d5d7-d55b-4878-a164-9c8cdc49a4cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorInstrumentosDePatrimonio_2b5d310f-b741-4127-ab80-cbfc84495c05" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_PagosPorInstrumentosDePatrimonio"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_dc1c0ba2-cb2d-42de-a84f-306a5d76c8c0" xlink:to="loc_repsol_PagosPorInstrumentosDePatrimonio_2b5d310f-b741-4127-ab80-cbfc84495c05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_fc3f8657-3f98-4509-b4a7-25062ff9890f" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_0f3461d4-a1dc-4b31-ac45-eaf690d7aa19" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_fc3f8657-3f98-4509-b4a7-25062ff9890f" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_0f3461d4-a1dc-4b31-ac45-eaf690d7aa19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities_ca50e96d-37c6-464d-a3a9-480fbc8ce684" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_fc3f8657-3f98-4509-b4a7-25062ff9890f" xlink:to="loc_ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities_ca50e96d-37c6-464d-a3a9-480fbc8ce684" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_08a3bcb0-3abf-478a-b2a6-12b3773bc459" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_fc142b16-46f5-4206-aff4-2979c33412c2" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_08a3bcb0-3abf-478a-b2a6-12b3773bc459" xlink:to="loc_ifrs-full_Cash_fc142b16-46f5-4206-aff4-2979c33412c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_8ac1c4e2-2335-48b7-9dad-f8ae04dd6e23" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_08a3bcb0-3abf-478a-b2a6-12b3773bc459" xlink:to="loc_ifrs-full_CashEquivalents_8ac1c4e2-2335-48b7-9dad-f8ae04dd6e23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_2e0cab40-a3b4-44cb-abe6-5be320e2b602" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_CobroPorDesinversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_138d2b8c-f7a0-4455-8dfd-c9589c9ab77a" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_2e0cab40-a3b4-44cb-abe6-5be320e2b602" xlink:to="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_138d2b8c-f7a0-4455-8dfd-c9589c9ab77a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_4b1939e2-5c9d-4038-945a-f553f1af14ed" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_2e0cab40-a3b4-44cb-abe6-5be320e2b602" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_4b1939e2-5c9d-4038-945a-f553f1af14ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_82f9c5f3-567b-41fb-ad21-ef3bb4fc5c5c" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_2e0cab40-a3b4-44cb-abe6-5be320e2b602" xlink:to="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_82f9c5f3-567b-41fb-ad21-ef3bb4fc5c5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_fc32bb7e-fe7b-4a06-8f29-c94b254a35bb" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversiones_5371e33a-cfbd-457b-b613-a798060b24f9" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_fc32bb7e-fe7b-4a06-8f29-c94b254a35bb" xlink:to="loc_repsol_PagoPorInversiones_5371e33a-cfbd-457b-b613-a798060b24f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_396546e9-9ec1-4207-8764-1df7849b9c5c" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_fc32bb7e-fe7b-4a06-8f29-c94b254a35bb" xlink:to="loc_repsol_CobroPorDesinversiones_396546e9-9ec1-4207-8764-1df7849b9c5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_db28fe58-acae-4f3f-8b94-3d8186ab0b86" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_fc32bb7e-fe7b-4a06-8f29-c94b254a35bb" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_db28fe58-acae-4f3f-8b94-3d8186ab0b86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_bb46bbac-8734-485b-bb70-b5c609ff8692" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_27a616ef-d4fc-4150-8c97-ab9d1a2b4a3a" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_bb46bbac-8734-485b-bb70-b5c609ff8692" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_27a616ef-d4fc-4150-8c97-ab9d1a2b4a3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_a38c9e73-f8f5-4007-826f-45c74a9d5986" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_bb46bbac-8734-485b-bb70-b5c609ff8692" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_a38c9e73-f8f5-4007-826f-45c74a9d5986" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_ac6c8c43-58af-4971-b641-578fddf569f0" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_bb46bbac-8734-485b-bb70-b5c609ff8692" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_ac6c8c43-58af-4971-b641-578fddf569f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_5501c98b-6676-498e-aaa4-eb6063673236" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a093df23-3ee0-44cb-9f33-e138f4981dea" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_5501c98b-6676-498e-aaa4-eb6063673236" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_a093df23-3ee0-44cb-9f33-e138f4981dea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_18fcc3e9-8589-4518-bd25-08761f2ae411" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_5501c98b-6676-498e-aaa4-eb6063673236" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_18fcc3e9-8589-4518-bd25-08761f2ae411" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_b5780d55-2d5b-499f-892f-861dd86f3718" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_5501c98b-6676-498e-aaa4-eb6063673236" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_b5780d55-2d5b-499f-892f-861dd86f3718" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_cced3517-5778-4f82-85a6-65b5ab2b2712" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_5501c98b-6676-498e-aaa4-eb6063673236" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_cced3517-5778-4f82-85a6-65b5ab2b2712" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_42dc91c2-62c2-407a-9203-91171e6ae26d" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_b590428a-59b8-4d38-8c23-312fe73ca5d9" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_42dc91c2-62c2-407a-9203-91171e6ae26d" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_b590428a-59b8-4d38-8c23-312fe73ca5d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_457dc5ca-b3d4-4539-8d75-51450763cfb8" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_42dc91c2-62c2-407a-9203-91171e6ae26d" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_457dc5ca-b3d4-4539-8d75-51450763cfb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_717b5b5d-4c42-4880-9e11-fa9b655f34c9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_02f36faa-c1f0-4117-a0cc-3b64cc8526f9" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_717b5b5d-4c42-4880-9e11-fa9b655f34c9" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_02f36faa-c1f0-4117-a0cc-3b64cc8526f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_aba59799-6dde-455a-b016-0bf728df9da7" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_717b5b5d-4c42-4880-9e11-fa9b655f34c9" xlink:to="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_aba59799-6dde-455a-b016-0bf728df9da7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_a405108d-4f35-4460-b485-0c01b0d576fb" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_717b5b5d-4c42-4880-9e11-fa9b655f34c9" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_a405108d-4f35-4460-b485-0c01b0d576fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_c2440bd1-28d5-44fd-9a53-a2b54516614e" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_717b5b5d-4c42-4880-9e11-fa9b655f34c9" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_c2440bd1-28d5-44fd-9a53-a2b54516614e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-03-24.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_72819d2d-3684-472f-83a1-a1c6d16de8b9" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_72819d2d-3684-472f-83a1-a1c6d16de8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_aa580a87-3f75-4cfa-9f52-1f0f407bc74b" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_aa580a87-3f75-4cfa-9f52-1f0f407bc74b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_eb1dcb7c-d349-486c-989d-36d0a91813c4" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_eb1dcb7c-d349-486c-989d-36d0a91813c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_00298587-da1c-4261-8bb0-7464466d5c7a" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_00298587-da1c-4261-8bb0-7464466d5c7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_01879f36-030a-4f06-a65c-010949fa51ec" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_1095024b-5bc2-4e76-8a94-bd9e9959da7f" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_01879f36-030a-4f06-a65c-010949fa51ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversiones_57dd95b6-99c2-4a5a-acc3-edb5d6e4ed5c" xlink:href="BSYCX13Y0NOTV14V9N85-2023-12-31.xsd#repsol_PagoPorInversiones"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_a46a6507-fb88-4d71-8244-2422120dc430" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_57dd95b6-99c2-4a5a-acc3-edb5d6e4ed5c" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_a46a6507-fb88-4d71-8244-2422120dc430" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_22d71892-cd15-42bf-bfac-3fe03862675b" xlink:href="BSYCX13Y0NOTV14V9N85-2023-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_57dd95b6-99c2-4a5a-acc3-edb5d6e4ed5c" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_22d71892-cd15-42bf-bfac-3fe03862675b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_546790ab-3e88-4407-9d58-0ba424be1c7c" xlink:href="https://xbrl.ifrs.org/taxonomy/2022-03-24/full_ifrs/full_ifrs-cor_2022-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_57dd95b6-99c2-4a5a-acc3-edb5d6e4ed5c" xlink:to="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_546790ab-3e88-4407-9d58-0ba424be1c7c" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
