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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:ae91d1a4-a608-4366-94ed-c37e36c222c2,g:c690b9df-9d8f-4cca-9731-5c44e863bbfa-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodesituacinfinancieracorrientenocorrienteStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2025-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_NoncurrentLiabilities_19cb1c60-db4c-46d5-acdc-bd839c88561f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_d6c497b6-88c2-4c26-a89a-18a1569dd2ae" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentProvisions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_19cb1c60-db4c-46d5-acdc-bd839c88561f" xlink:to="loc_ifrs-full_NoncurrentProvisions_d6c497b6-88c2-4c26-a89a-18a1569dd2ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_73288d45-a547-4c9d-951e-dd4959bfc27d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DeferredTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_19cb1c60-db4c-46d5-acdc-bd839c88561f" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_73288d45-a547-4c9d-951e-dd4959bfc27d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_2d15a695-48a9-482e-9fe7-02e44590508d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentFinancialLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_19cb1c60-db4c-46d5-acdc-bd839c88561f" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_2d15a695-48a9-482e-9fe7-02e44590508d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_6748a7f2-3464-41d0-8788-1174eb2d299d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities_19cb1c60-db4c-46d5-acdc-bd839c88561f" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_6748a7f2-3464-41d0-8788-1174eb2d299d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_ac4dd5be-43d2-41c9-8170-5bcb0276d49e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_CashAndCashEquivalents_ac4dd5be-43d2-41c9-8170-5bcb0276d49e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_ee7d9652-e3ac-45e0-adf6-2f106c4dfaee" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Inventories"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_Inventories_ee7d9652-e3ac-45e0-adf6-2f106c4dfaee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets_d56a991a-00fc-4459-ab9e-7cbef8a24f50" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherCurrentAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_OtherCurrentAssets_d56a991a-00fc-4459-ab9e-7cbef8a24f50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables_1caf5f65-a889-44b6-b2d0-a4a41347a8e6" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherCurrentReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables_1caf5f65-a889-44b6-b2d0-a4a41347a8e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentFinancialAssets_bf8553aa-d1a9-4017-98b2-06939a21b569" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherCurrentFinancialAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_OtherCurrentFinancialAssets_bf8553aa-d1a9-4017-98b2-06939a21b569" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_c97dcf7e-d33c-40a2-922c-112f317f695e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets_527bc183-cd73-4c0f-a1ef-08202f0a566d" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_c97dcf7e-d33c-40a2-922c-112f317f695e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_2e4d40e9-4252-4e26-bad5-b0f3fc54e0fd" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_2c5b7023-fc9c-4f78-8144-69a4a9402b71" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_2e4d40e9-4252-4e26-bad5-b0f3fc54e0fd" xlink:to="loc_ifrs-full_NoncurrentLiabilities_2c5b7023-fc9c-4f78-8144-69a4a9402b71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_2fe1159c-231a-46a5-adf0-da344100e399" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Equity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_2e4d40e9-4252-4e26-bad5-b0f3fc54e0fd" xlink:to="loc_ifrs-full_Equity_2fe1159c-231a-46a5-adf0-da344100e399" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_4414f6b5-f857-49f2-966e-f058027db4d0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities_2e4d40e9-4252-4e26-bad5-b0f3fc54e0fd" xlink:to="loc_ifrs-full_CurrentLiabilities_4414f6b5-f857-49f2-966e-f058027db4d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_ff1dc7bb-cea5-438a-8886-4e7b39319e7e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_39d1c583-28ac-4c15-9eba-82aa517aaa5c" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncontrollingInterests"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_ff1dc7bb-cea5-438a-8886-4e7b39319e7e" xlink:to="loc_ifrs-full_NoncontrollingInterests_39d1c583-28ac-4c15-9eba-82aa517aaa5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_108d1ea5-679b-494f-a1a9-d41a5d96eba5" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_FondosPropios"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_ff1dc7bb-cea5-438a-8886-4e7b39319e7e" xlink:to="loc_repsol_FondosPropios_108d1ea5-679b-494f-a1a9-d41a5d96eba5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_92f7f35d-4645-4123-a561-d170a6617732" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity_ff1dc7bb-cea5-438a-8886-4e7b39319e7e" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_92f7f35d-4645-4123-a561-d170a6617732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_9e8e498a-5b51-40d5-90f9-291d1e0ebf06" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_3f255e9c-899e-41c4-95ca-b7a1b2bba34f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_9e8e498a-5b51-40d5-90f9-291d1e0ebf06" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_3f255e9c-899e-41c4-95ca-b7a1b2bba34f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_9854636a-5c81-4c34-8365-05e9e72b8c39" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentFinancialLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_9e8e498a-5b51-40d5-90f9-291d1e0ebf06" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_9854636a-5c81-4c34-8365-05e9e72b8c39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_71805f45-9f46-4459-8568-1e7c73b8b3d3" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentProvisions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_9e8e498a-5b51-40d5-90f9-291d1e0ebf06" xlink:to="loc_ifrs-full_CurrentProvisions_71805f45-9f46-4459-8568-1e7c73b8b3d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_f3fd122e-0678-4e2c-8467-9db74b5cdc2e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities_9e8e498a-5b51-40d5-90f9-291d1e0ebf06" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_f3fd122e-0678-4e2c-8467-9db74b5cdc2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_6bf0d842-1ab4-4383-a4cd-3350e76d51f5" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_de3713c3-dd11-4b43-9f5d-83c6896e82ec" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_6bf0d842-1ab4-4383-a4cd-3350e76d51f5" xlink:to="loc_ifrs-full_CurrentAssets_de3713c3-dd11-4b43-9f5d-83c6896e82ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_fbadab98-936c-4fee-bf3e-8eb7539d9d6a" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets_6bf0d842-1ab4-4383-a4cd-3350e76d51f5" xlink:to="loc_ifrs-full_NoncurrentAssets_fbadab98-936c-4fee-bf3e-8eb7539d9d6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_8c01d376-73c9-4b54-a287-c65c37fdbc66" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_8c01d376-73c9-4b54-a287-c65c37fdbc66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_26ef5773-855f-4878-8a22-70623ae72282" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherNoncurrentNonfinancialAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_26ef5773-855f-4878-8a22-70623ae72282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_9f1599f2-ebdb-4912-b4d0-2d2679e708e0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_9f1599f2-ebdb-4912-b4d0-2d2679e708e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_da3cb2d5-763e-40a6-972c-ac82cd237530" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentFinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_da3cb2d5-763e-40a6-972c-ac82cd237530" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_d16f5818-6105-42cd-acd3-2b18f9793a05" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DeferredTaxAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_DeferredTaxAssets_d16f5818-6105-42cd-acd3-2b18f9793a05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipmentIncludingRightofuseAssets_eea06705-77a6-4b2e-996e-24926f77bd1f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PropertyPlantAndEquipmentIncludingRightofuseAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets_a0d1875d-5fef-4de6-8a99-de5d4a3b748c" xlink:to="loc_ifrs-full_PropertyPlantAndEquipmentIncludingRightofuseAssets_eea06705-77a6-4b2e-996e-24926f77bd1f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalderesultadospornaturalezadelgastoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2025-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_ProfitLossBeforeTax_2f6aeb24-0c36-49ec-920b-46f26054bb64" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_304bd04a-5034-41e9-8301-4513b484d6c0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_2f6aeb24-0c36-49ec-920b-46f26054bb64" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_304bd04a-5034-41e9-8301-4513b484d6c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_1b8f89be-a566-4582-8500-043571b040e0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_2f6aeb24-0c36-49ec-920b-46f26054bb64" xlink:to="loc_ifrs-full_FinanceIncomeCost_1b8f89be-a566-4582-8500-043571b040e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_eb6061de-f110-4625-a64d-14b6951a48ee" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax_2f6aeb24-0c36-49ec-920b-46f26054bb64" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_eb6061de-f110-4625-a64d-14b6951a48ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_dd795656-f892-4ff3-9a80-6b12cd7b0bd0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_dd795656-f892-4ff3-9a80-6b12cd7b0bd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_DotacionReversionPorDeterioroDeInstrumentosFinancieros_aef897ea-d6d1-4a42-874f-567a4eeabbae" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_DotacionReversionPorDeterioroDeInstrumentosFinancieros"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_repsol_DotacionReversionPorDeterioroDeInstrumentosFinancieros_aef897ea-d6d1-4a42-874f-567a4eeabbae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_92578ce4-e086-46bf-9458-753cf3628c79" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_92578ce4-e086-46bf-9458-753cf3628c79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_cf079b8f-66bc-47ed-9a22-ddb2af0c6df5" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherFinanceIncomeCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_cf079b8f-66bc-47ed-9a22-ddb2af0c6df5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestExpense_86fe6cda-6624-4443-98f9-8e6b78339033" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_ifrs-full_InterestExpense_86fe6cda-6624-4443-98f9-8e6b78339033" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromInterest_be942ba8-ea3b-4c9d-8f49-41bed1e40e6b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RevenueFromInterest"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost_5b12b9ef-e525-4dca-9a1b-cb485a4921af" xlink:to="loc_ifrs-full_RevenueFromInterest_be942ba8-ea3b-4c9d-8f49-41bed1e40e6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_e78c090c-2c7f-4914-a633-322143d4884c" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_fdaad3ef-d4f4-4036-9b3c-b02f22039b40" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_e78c090c-2c7f-4914-a633-322143d4884c" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_fdaad3ef-d4f4-4036-9b3c-b02f22039b40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_860bcdb8-e7bd-4e23-a23d-eff389fe68ba" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss_e78c090c-2c7f-4914-a633-322143d4884c" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_860bcdb8-e7bd-4e23-a23d-eff389fe68ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_5f89a628-04d1-4bc4-8d61-6e0a52a72256" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EmployeeBenefitsExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_5f89a628-04d1-4bc4-8d61-6e0a52a72256" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_d9913b2c-da9a-4ecb-892e-df7133fdefb3" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_Suministros"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_repsol_Suministros_d9913b2c-da9a-4ecb-892e-df7133fdefb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_dfe03dde-af69-4fb4-a9ed-d9f3a6e55c34" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_dfe03dde-af69-4fb4-a9ed-d9f3a6e55c34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_576d0eec-f3d4-4997-8b64-c4640623e3cf" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_576d0eec-f3d4-4997-8b64-c4640623e3cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_84fa075a-9b2f-4129-96e0-bebee6f34fa3" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DepreciationAndAmortisationExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_84fa075a-9b2f-4129-96e0-bebee6f34fa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_7b1cbc09-3af8-4dad-ab4b-c589c806ad57" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RawMaterialsAndConsumablesUsed"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_7b1cbc09-3af8-4dad-ab4b-c589c806ad57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromRenderingOfServices_8ae2f36f-d90e-45f4-9335-4969d072665b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RevenueFromRenderingOfServices"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_RevenueFromRenderingOfServices_8ae2f36f-d90e-45f4-9335-4969d072665b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_3ab84b0d-aa07-4795-90bd-4c1d7c67636b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RevenueFromSaleOfGoods"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_3ab84b0d-aa07-4795-90bd-4c1d7c67636b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TransportationExpense_41a937a1-bc67-4243-9933-dc852574ada3" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TransportationExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_TransportationExpense_41a937a1-bc67-4243-9933-dc852574ada3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_18409444-96f8-46d8-8fa3-d2b99d9b8ac2" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_18409444-96f8-46d8-8fa3-d2b99d9b8ac2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense_2d1916ba-8e3a-4569-816e-17da1615758d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities_2874ff67-ffb1-4df1-afad-1a697c657041" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense_2d1916ba-8e3a-4569-816e-17da1615758d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_2c5b1ac8-bb2b-4b2c-a330-d838a12f1dfc" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_5331be45-0fbe-4cfe-9d7d-169564be084f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_2c5b1ac8-bb2b-4b2c-a330-d838a12f1dfc" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_5331be45-0fbe-4cfe-9d7d-169564be084f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_316af937-2e2a-4b4d-8fe0-8e0e444409cd" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_2c5b1ac8-bb2b-4b2c-a330-d838a12f1dfc" xlink:to="loc_ifrs-full_ProfitLoss_316af937-2e2a-4b4d-8fe0-8e0e444409cd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2025-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_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_9be4178d-56d5-4c63-97c9-5d7d8125d527" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_e48d834d-5c2d-4072-8265-a38a229d8432" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_9be4178d-56d5-4c63-97c9-5d7d8125d527" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_e48d834d-5c2d-4072-8265-a38a229d8432" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_ed9b0cbd-0c05-40df-b5d8-238a788d7345" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_9be4178d-56d5-4c63-97c9-5d7d8125d527" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_ed9b0cbd-0c05-40df-b5d8-238a788d7345" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_019c4ca4-4c12-7e53-822e-e742c1ae89ae" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_GananciasPerdidasPorValoracion_019c4ca4-4c12-7b56-bc58-b26860062450" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_GananciasPerdidasPorValoracion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_019c4ca4-4c12-7e53-822e-e742c1ae89ae" xlink:to="loc_repsol_GananciasPerdidasPorValoracion_019c4ca4-4c12-7b56-bc58-b26860062450" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_019c4ca4-4c12-70c0-bcea-cce83f041f62" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_019c4ca4-4c12-7e53-822e-e742c1ae89ae" xlink:to="loc_repsol_ImportesTransferidosALaCuentaDePerdidasYGanancias_019c4ca4-4c12-70c0-bcea-cce83f041f62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_a0069dd8-e23f-4794-be26-a50c37536a85" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_ec0a72e1-2d8b-4040-b597-9d7c5c6eb234" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_a0069dd8-e23f-4794-be26-a50c37536a85" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_ec0a72e1-2d8b-4040-b597-9d7c5c6eb234" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_e3c37a90-05b1-4fbc-bedd-b64833c6c652" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_a0069dd8-e23f-4794-be26-a50c37536a85" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_e3c37a90-05b1-4fbc-bedd-b64833c6c652" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_872cf1b8-82eb-46b1-8f46-98ce5a60d222" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_80be9fd7-9396-4021-9fd3-338a55a17378" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome_872cf1b8-82eb-46b1-8f46-98ce5a60d222" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_80be9fd7-9396-4021-9fd3-338a55a17378" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_23fbde44-73fa-49aa-bc63-3a6852ab0154" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome_872cf1b8-82eb-46b1-8f46-98ce5a60d222" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_23fbde44-73fa-49aa-bc63-3a6852ab0154" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f0716202-9af2-4768-81d2-5a1c0c5f48c7" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_6939ec02-f80b-497a-ae20-53e31e74016e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f0716202-9af2-4768-81d2-5a1c0c5f48c7" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_6939ec02-f80b-497a-ae20-53e31e74016e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_739d8f49-327e-4b3a-83ac-8876d04af385" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f0716202-9af2-4768-81d2-5a1c0c5f48c7" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax_739d8f49-327e-4b3a-83ac-8876d04af385" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_4db1c1b8-941c-4511-a75c-ad716290f00f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f0716202-9af2-4768-81d2-5a1c0c5f48c7" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_4db1c1b8-941c-4511-a75c-ad716290f00f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_8a5a2f2d-36b9-4aff-84ce-ab78ac89a972" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_f0716202-9af2-4768-81d2-5a1c0c5f48c7" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_8a5a2f2d-36b9-4aff-84ce-ab78ac89a972" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_b258d97b-4acd-48e6-9468-26a752ab74b4" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_e9b8807c-6299-4ec3-bdfd-228f30e67ba6" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_b258d97b-4acd-48e6-9468-26a752ab74b4" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_e9b8807c-6299-4ec3-bdfd-228f30e67ba6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_253acf5f-fea9-48f5-b66b-df8ac7723297" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_b258d97b-4acd-48e6-9468-26a752ab74b4" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_253acf5f-fea9-48f5-b66b-df8ac7723297" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_dafce581-2f18-42fa-aafa-a622f226597b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_b258d97b-4acd-48e6-9468-26a752ab74b4" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_dafce581-2f18-42fa-aafa-a622f226597b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_e3f93ac2-2d8d-47df-a431-3ecb35efe560" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_b258d97b-4acd-48e6-9468-26a752ab74b4" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_e3f93ac2-2d8d-47df-a431-3ecb35efe560" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_ae5ae616-a4d6-47d2-acf0-7474e2e48d61" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_2a508323-7c73-4374-b5e4-1f465c5c4200" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_ae5ae616-a4d6-47d2-acf0-7474e2e48d61" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_2a508323-7c73-4374-b5e4-1f465c5c4200" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_1d1b6c05-231f-4d15-9466-8eedd0261fa0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_ae5ae616-a4d6-47d2-acf0-7474e2e48d61" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_1d1b6c05-231f-4d15-9466-8eedd0261fa0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodelresultadoglobalcomponentesORIpresentadosnetosdeimpuestosStatement_1" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2025-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_34f2218c-250d-45f6-8071-b88fb2231813" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_bd660f79-9530-4bf9-8401-bdc09eb83e5f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_34f2218c-250d-45f6-8071-b88fb2231813" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_bd660f79-9530-4bf9-8401-bdc09eb83e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_9b089f74-cbc4-49ac-8289-0369bd8f9f22" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome_34f2218c-250d-45f6-8071-b88fb2231813" xlink:to="loc_ifrs-full_ProfitLoss_9b089f74-cbc4-49ac-8289-0369bd8f9f22" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.repsol.com/role/EstadodeflujosdeefectivomtodoindirectoStatement" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2025-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_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_68330f1a-7064-48db-9113-6adc9f0c12fb" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_68330f1a-7064-48db-9113-6adc9f0c12fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_5f2d60c9-3bb6-4d56-827f-631f75ba9480" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_5f2d60c9-3bb6-4d56-827f-631f75ba9480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_fb626b45-d603-408a-a0e6-e04cd1291169" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_fb626b45-d603-408a-a0e6-e04cd1291169" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_4fa2fd36-7c08-4bbe-936c-39812bb42c22" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_4fa2fd36-7c08-4bbe-936c-39812bb42c22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl_5137b62a-61a7-4d4c-9462-cce6fb704d0d" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_0ae45e85-c6ce-4184-8492-ff40d209a074" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl_5137b62a-61a7-4d4c-9462-cce6fb704d0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4fe935ef-7f1f-4c65-8e37-b86297097391" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_9fbc37d4-6b3e-4d32-b801-58d29847be27" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4fe935ef-7f1f-4c65-8e37-b86297097391" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_9fbc37d4-6b3e-4d32-b801-58d29847be27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_cbd879fb-ca43-4ced-8842-cf9bfc6b0fae" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4fe935ef-7f1f-4c65-8e37-b86297097391" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_cbd879fb-ca43-4ced-8842-cf9bfc6b0fae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6412f352-15fe-4319-96d5-086c3426529d" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4fe935ef-7f1f-4c65-8e37-b86297097391" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_6412f352-15fe-4319-96d5-086c3426529d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_61d94c43-6098-4d1a-b425-86b90da79346" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_4fe935ef-7f1f-4c65-8e37-b86297097391" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_61d94c43-6098-4d1a-b425-86b90da79346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl_019bff84-30cf-7459-a536-3d9dec1691b1" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_019bff84-30cf-761e-8548-2e640ff2f585" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl_019bff84-30cf-7459-a536-3d9dec1691b1" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_019bff84-30cf-761e-8548-2e640ff2f585" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities_019bff84-30cf-7207-940e-05db50380ba2" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropiedadDeDependientesQueNoDenLugarAPerdidaDeControl_019bff84-30cf-7459-a536-3d9dec1691b1" xlink:to="loc_ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities_019bff84-30cf-7207-940e-05db50380ba2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_088a06b1-0e5e-4264-bf99-31ed159581b2" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_092f22c6-4930-4f36-93b8-0de7f3e9a456" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_088a06b1-0e5e-4264-bf99-31ed159581b2" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_092f22c6-4930-4f36-93b8-0de7f3e9a456" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_400086b1-906b-4d53-8eff-70592872b5c6" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_088a06b1-0e5e-4264-bf99-31ed159581b2" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_400086b1-906b-4d53-8eff-70592872b5c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_a1d94509-4982-45f8-8990-182aa6f64ab1" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_088a06b1-0e5e-4264-bf99-31ed159581b2" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_a1d94509-4982-45f8-8990-182aa6f64ab1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_a592778a-d0a5-48fe-bd10-f7b18d8789e7" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OutflowsOfCashFromInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_b32999d5-e54b-40fc-90af-07b5faa248b7" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_a592778a-d0a5-48fe-bd10-f7b18d8789e7" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_b32999d5-e54b-40fc-90af-07b5faa248b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAParticipadas_7faa34f7-f43b-459a-845d-7ff8929dd05f" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAParticipadas"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_a592778a-d0a5-48fe-bd10-f7b18d8789e7" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAParticipadas_7faa34f7-f43b-459a-845d-7ff8929dd05f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_541befad-ad4b-46b4-ad81-5c73bba4382b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_a592778a-d0a5-48fe-bd10-f7b18d8789e7" xlink:to="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_541befad-ad4b-46b4-ad81-5c73bba4382b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8bb5e314-7c01-4f3c-889e-bd39d79261dc" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_ce17f0d9-c60a-411a-a272-f4921d1a78ed" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8bb5e314-7c01-4f3c-889e-bd39d79261dc" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_ce17f0d9-c60a-411a-a272-f4921d1a78ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_b26561c4-e2e8-4389-a2ad-015737226ed2" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInWorkingCapital"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8bb5e314-7c01-4f3c-889e-bd39d79261dc" xlink:to="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_b26561c4-e2e8-4389-a2ad-015737226ed2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_9ee5ce7f-d6c6-4d22-a24f-38087f3e83cb" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8bb5e314-7c01-4f3c-889e-bd39d79261dc" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_9ee5ce7f-d6c6-4d22-a24f-38087f3e83cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_034da678-2e53-4f10-96fe-e82d9900f00e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_8bb5e314-7c01-4f3c-889e-bd39d79261dc" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_034da678-2e53-4f10-96fe-e82d9900f00e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_f72498af-91ca-449e-aeef-1265800cb6c4" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_54d08061-45c0-4b2e-8f26-6d01a796c05c" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OutflowsOfCashFromInvestingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_f72498af-91ca-449e-aeef-1265800cb6c4" xlink:to="loc_ifrs-full_OutflowsOfCashFromInvestingActivities_54d08061-45c0-4b2e-8f26-6d01a796c05c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InflowsOfCashFromInvestingActivities_987ff175-b330-4754-831c-791317dca73e" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InflowsOfCashFromInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_f72498af-91ca-449e-aeef-1265800cb6c4" xlink:to="loc_ifrs-full_InflowsOfCashFromInvestingActivities_987ff175-b330-4754-831c-791317dca73e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_8115cd3f-a170-4e03-b929-8f90384f9786" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_f72498af-91ca-449e-aeef-1265800cb6c4" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_8115cd3f-a170-4e03-b929-8f90384f9786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_acaed1e7-e1e3-4cc2-a7b0-6578961f41c1" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_c258beb6-ca97-41f9-9472-23fe18926a8b" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Cash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_acaed1e7-e1e3-4cc2-a7b0-6578961f41c1" xlink:to="loc_ifrs-full_Cash_c258beb6-ca97-41f9-9472-23fe18926a8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_8dffd3f3-b146-472e-a27f-fbd003c657a0" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents_acaed1e7-e1e3-4cc2-a7b0-6578961f41c1" xlink:to="loc_ifrs-full_CashEquivalents_8dffd3f3-b146-472e-a27f-fbd003c657a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_4fb84f94-e9f0-4f44-8145-372b18bdb097" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_1b026a86-8670-4a3d-897a-7eee094aabc9" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_4fb84f94-e9f0-4f44-8145-372b18bdb097" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_1b026a86-8670-4a3d-897a-7eee094aabc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_2e466106-8f89-4e4a-9ca1-119f61316abf" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_4fb84f94-e9f0-4f44-8145-372b18bdb097" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_2e466106-8f89-4e4a-9ca1-119f61316abf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_5a966ee6-f38a-4daf-b183-07d0845de528" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_141da01e-7c6b-4d5c-ba39-c56db0d0d626" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_5a966ee6-f38a-4daf-b183-07d0845de528" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_141da01e-7c6b-4d5c-ba39-c56db0d0d626" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_2e503a68-0e33-46b4-ad30-1b118cccacaf" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherAdjustmentsToReconcileProfitLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_5a966ee6-f38a-4daf-b183-07d0845de528" xlink:to="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_2e503a68-0e33-46b4-ad30-1b118cccacaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_d0a88c2a-b5a0-4ab7-bf54-b39804a9740c" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_59696223-d464-4afc-8d53-c598604e37ab" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPorLaEmisionDePasivosFinancieros"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_d0a88c2a-b5a0-4ab7-bf54-b39804a9740c" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_59696223-d464-4afc-8d53-c598604e37ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_9b06d429-5964-4287-b06f-eae6f8175d10" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_d0a88c2a-b5a0-4ab7-bf54-b39804a9740c" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_9b06d429-5964-4287-b06f-eae6f8175d10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_badb04d7-70f6-41e2-83eb-51aba5947a8f" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_f466d3b7-0fbc-4695-a472-766982a05cdd" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromIssuingShares"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_badb04d7-70f6-41e2-83eb-51aba5947a8f" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_f466d3b7-0fbc-4695-a472-766982a05cdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorDevolucionYAmortizacionDeInstrumentosDePatrimonio_0e002306-6d79-4422-8045-cc2813d0887f" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_PagosPorDevolucionYAmortizacionDeInstrumentosDePatrimonio"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_badb04d7-70f6-41e2-83eb-51aba5947a8f" xlink:to="loc_repsol_PagosPorDevolucionYAmortizacionDeInstrumentosDePatrimonio_0e002306-6d79-4422-8045-cc2813d0887f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares_019c001d-2e81-76dd-a5a3-3f750d44ed6f" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PaymentsToAcquireOrRedeemEntitysShares"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_badb04d7-70f6-41e2-83eb-51aba5947a8f" xlink:to="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares_019c001d-2e81-76dd-a5a3-3f750d44ed6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares_019c001d-2e81-7cb9-b3c1-53c1cd333c0c" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_badb04d7-70f6-41e2-83eb-51aba5947a8f" xlink:to="loc_ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares_019c001d-2e81-7cb9-b3c1-53c1cd333c0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InflowsOfCashFromInvestingActivities_e8dd2e15-88c8-4dcc-8ac6-1d8f50fcd9b9" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InflowsOfCashFromInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAPaticipadas_47943405-8952-4398-b5a7-05758de537eb" xlink:href="BSYCX13Y0NOTV14V9N85-2025-12-31.xsd#repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAPaticipadas"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_InflowsOfCashFromInvestingActivities_e8dd2e15-88c8-4dcc-8ac6-1d8f50fcd9b9" xlink:to="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasUnidadesDeNegocioYPrestamosAPaticipadas_47943405-8952-4398-b5a7-05758de537eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_d876e91c-08a7-4f1a-ad39-2b43232ce5ff" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_InflowsOfCashFromInvestingActivities_e8dd2e15-88c8-4dcc-8ac6-1d8f50fcd9b9" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_d876e91c-08a7-4f1a-ad39-2b43232ce5ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_30df6a1c-2ebc-4bd0-a115-6c17bbf9fbf8" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_InflowsOfCashFromInvestingActivities_e8dd2e15-88c8-4dcc-8ac6-1d8f50fcd9b9" xlink:to="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_30df6a1c-2ebc-4bd0-a115-6c17bbf9fbf8" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
