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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:8782f3a3-a799-437d-a869-89dd159aef9b,g:90d71592-4148-40df-b708-b09da792cba0-->
<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.rubiustx.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ruby-20221231.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_c44ff2d3-73ab-4fb8-ab07-09a97df273be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2f013059-e921-4ebf-99e7-7f590e73f9da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c44ff2d3-73ab-4fb8-ab07-09a97df273be" xlink:to="loc_us-gaap_AssetsCurrent_2f013059-e921-4ebf-99e7-7f590e73f9da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_750b29e7-9ce5-48ff-a545-ec7a0a31c228" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c44ff2d3-73ab-4fb8-ab07-09a97df273be" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_750b29e7-9ce5-48ff-a545-ec7a0a31c228" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_aff0b8ec-1dc8-4a3f-b1ea-f07524c5497b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c44ff2d3-73ab-4fb8-ab07-09a97df273be" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_aff0b8ec-1dc8-4a3f-b1ea-f07524c5497b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_01875415-c38c-40da-be6b-af8ad0dbe873" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c44ff2d3-73ab-4fb8-ab07-09a97df273be" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_01875415-c38c-40da-be6b-af8ad0dbe873" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_5356ef4d-983a-4fef-8a87-e37fd658547a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_2925c8ef-66e9-45c0-ab23-709214e214a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_5356ef4d-983a-4fef-8a87-e37fd658547a" xlink:to="loc_us-gaap_Liabilities_2925c8ef-66e9-45c0-ab23-709214e214a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f6b684dd-c127-421b-a3f8-bec96176b705" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_5356ef4d-983a-4fef-8a87-e37fd658547a" xlink:to="loc_us-gaap_StockholdersEquity_f6b684dd-c127-421b-a3f8-bec96176b705" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_9a3b9a5b-b28f-4fe6-b547-76b1f906e4d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_b4459e78-8fef-4a63-82d3-5c2110264d4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_9a3b9a5b-b28f-4fe6-b547-76b1f906e4d5" xlink:to="loc_us-gaap_LiabilitiesCurrent_b4459e78-8fef-4a63-82d3-5c2110264d4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_cace366b-64af-41c6-a6f1-f827a200e2d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_9a3b9a5b-b28f-4fe6-b547-76b1f906e4d5" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_cace366b-64af-41c6-a6f1-f827a200e2d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_ebe64467-995c-47f9-be98-0a50375cc680" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_9a3b9a5b-b28f-4fe6-b547-76b1f906e4d5" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_ebe64467-995c-47f9-be98-0a50375cc680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_fba48c08-7c6f-4909-aa91-f96b8a5b2da2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_9a3b9a5b-b28f-4fe6-b547-76b1f906e4d5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_fba48c08-7c6f-4909-aa91-f96b8a5b2da2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_7d3cfa9f-f4d8-4661-b18d-733e63da9676" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_17584137-b886-47a4-b78c-441a1b75edc3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_7d3cfa9f-f4d8-4661-b18d-733e63da9676" xlink:to="loc_us-gaap_PreferredStockValue_17584137-b886-47a4-b78c-441a1b75edc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_5023d875-ec01-476c-81a7-58ddd364e508" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_7d3cfa9f-f4d8-4661-b18d-733e63da9676" xlink:to="loc_us-gaap_CommonStockValue_5023d875-ec01-476c-81a7-58ddd364e508" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_ecfd3324-b396-4123-a539-af3d669ca1d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_7d3cfa9f-f4d8-4661-b18d-733e63da9676" xlink:to="loc_us-gaap_AdditionalPaidInCapital_ecfd3324-b396-4123-a539-af3d669ca1d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ab8cfaeb-5849-40b7-8ba5-9b039e484ad5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_7d3cfa9f-f4d8-4661-b18d-733e63da9676" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ab8cfaeb-5849-40b7-8ba5-9b039e484ad5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_1e775d8c-57c7-4fd6-8c62-b66bb0f56b26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_71daf3ed-79fd-4f05-8fe8-8df4c2ceb840" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1e775d8c-57c7-4fd6-8c62-b66bb0f56b26" xlink:to="loc_us-gaap_AccountsPayableCurrent_71daf3ed-79fd-4f05-8fe8-8df4c2ceb840" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_57ea84d5-4924-4bbb-8fd4-c066768639f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1e775d8c-57c7-4fd6-8c62-b66bb0f56b26" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_57ea84d5-4924-4bbb-8fd4-c066768639f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_70ffaf52-096e-433c-8545-03a0fa4c0d50" xlink:href="ruby-20221231.xsd#ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_1e775d8c-57c7-4fd6-8c62-b66bb0f56b26" xlink:to="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_70ffaf52-096e-433c-8545-03a0fa4c0d50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_f97d9a6d-3569-4f68-9fcf-1e524ee70b98" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_209f7975-dfd4-43df-91bc-615419787b70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_f97d9a6d-3569-4f68-9fcf-1e524ee70b98" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_209f7975-dfd4-43df-91bc-615419787b70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_PrepaidExpenseAndOtherCurrent_23809754-c727-4c5c-a605-124babb98a67" xlink:href="ruby-20221231.xsd#ruby_PrepaidExpenseAndOtherCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_f97d9a6d-3569-4f68-9fcf-1e524ee70b98" xlink:to="loc_ruby_PrepaidExpenseAndOtherCurrent_23809754-c727-4c5c-a605-124babb98a67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_92641744-8d5d-40ff-bb0f-d701b7791526" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_f97d9a6d-3569-4f68-9fcf-1e524ee70b98" xlink:to="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent_92641744-8d5d-40ff-bb0f-d701b7791526" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ruby-20221231.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6cae5d28-a39e-416a-9bf1-c76388ac65c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_ebe4370c-a9a1-44fe-b1c6-9b3a90090d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_6cae5d28-a39e-416a-9bf1-c76388ac65c6" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_ebe4370c-a9a1-44fe-b1c6-9b3a90090d3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7cf225c4-e6e0-49ee-9ae6-82088a1e64e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_6cae5d28-a39e-416a-9bf1-c76388ac65c6" xlink:to="loc_us-gaap_OperatingIncomeLoss_7cf225c4-e6e0-49ee-9ae6-82088a1e64e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e6462b9a-1bc8-4922-9b4a-08f1cf715ff6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_dc7a6339-3d8b-41cd-86c7-26b0b4023f15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e6462b9a-1bc8-4922-9b4a-08f1cf715ff6" xlink:to="loc_us-gaap_Revenues_dc7a6339-3d8b-41cd-86c7-26b0b4023f15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f5a97440-2ac9-474f-9363-b500606dd07e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e6462b9a-1bc8-4922-9b4a-08f1cf715ff6" xlink:to="loc_us-gaap_OperatingExpenses_f5a97440-2ac9-474f-9363-b500606dd07e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_f59f542b-5177-416a-bf5f-2a0cf48901d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_3909194f-78ee-4959-9d8f-88c8f576664b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f59f542b-5177-416a-bf5f-2a0cf48901d9" xlink:to="loc_us-gaap_InvestmentIncomeInterest_3909194f-78ee-4959-9d8f-88c8f576664b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_ff4bcbe4-6be3-4d2a-bf87-ea464498167f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f59f542b-5177-416a-bf5f-2a0cf48901d9" xlink:to="loc_us-gaap_InterestExpense_ff4bcbe4-6be3-4d2a-bf87-ea464498167f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_f6d5ac6c-aa88-4028-9699-73543f0e803f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_f59f542b-5177-416a-bf5f-2a0cf48901d9" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_f6d5ac6c-aa88-4028-9699-73543f0e803f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_9ad9d3fe-031e-4b84-a034-65d5508890a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_33a2a960-863e-46e8-9775-5481f491a03b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_9ad9d3fe-031e-4b84-a034-65d5508890a9" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_33a2a960-863e-46e8-9775-5481f491a03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_1a2aa38d-12fb-4c56-b2fc-d0c31176e655" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_9ad9d3fe-031e-4b84-a034-65d5508890a9" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_1a2aa38d-12fb-4c56-b2fc-d0c31176e655" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_bfd1b62a-7462-4002-8562-fd9897e41eb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_9ad9d3fe-031e-4b84-a034-65d5508890a9" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_bfd1b62a-7462-4002-8562-fd9897e41eb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_53241a7b-805d-4632-870e-4cb7c824362f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a672ca64-0223-47d7-bb28-299be73ac2a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_53241a7b-805d-4632-870e-4cb7c824362f" xlink:to="loc_us-gaap_NetIncomeLoss_a672ca64-0223-47d7-bb28-299be73ac2a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_3f2c5540-b203-4468-a090-8a68ac4ccf19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_53241a7b-805d-4632-870e-4cb7c824362f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_3f2c5540-b203-4468-a090-8a68ac4ccf19" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ruby-20221231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b31eec52-ed49-4b9e-ae23-d405688e2ac5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_3ecc5c26-a175-4467-9922-825fcf43d723" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b31eec52-ed49-4b9e-ae23-d405688e2ac5" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_3ecc5c26-a175-4467-9922-825fcf43d723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_85c55916-72cc-44ba-a213-c12621c0d9b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b31eec52-ed49-4b9e-ae23-d405688e2ac5" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_85c55916-72cc-44ba-a213-c12621c0d9b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_90a275cc-8f27-49fb-9f2c-0d958f34294d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b31eec52-ed49-4b9e-ae23-d405688e2ac5" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_90a275cc-8f27-49fb-9f2c-0d958f34294d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_b8dd0085-f8f0-4218-bc25-4b7a32fe2cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b31eec52-ed49-4b9e-ae23-d405688e2ac5" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_b8dd0085-f8f0-4218-bc25-4b7a32fe2cd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_813971f1-7906-41da-aaac-17a8ef2635bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bdb133fb-9163-458f-8b55-d50eb1a2b68f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_813971f1-7906-41da-aaac-17a8ef2635bc" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bdb133fb-9163-458f-8b55-d50eb1a2b68f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d23840de-8fc8-4c98-b4f5-32c011358716" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_813971f1-7906-41da-aaac-17a8ef2635bc" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d23840de-8fc8-4c98-b4f5-32c011358716" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff543940-bc04-499f-9a55-b8d8335ab117" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_813971f1-7906-41da-aaac-17a8ef2635bc" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff543940-bc04-499f-9a55-b8d8335ab117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_6b85c50d-9732-494f-a042-4aa8acf8b118" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_6b85c50d-9732-494f-a042-4aa8acf8b118" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_e206a876-211b-48fa-b928-20da35f9e5c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_e206a876-211b-48fa-b928-20da35f9e5c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_80ab29fd-cb24-4128-a749-c9f303c51395" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_80ab29fd-cb24-4128-a749-c9f303c51395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_48b94ebb-8da0-4933-b77c-6940193819f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_48b94ebb-8da0-4933-b77c-6940193819f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_ba31c870-e647-40ba-8ecd-f2de607c9579" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_ba31c870-e647-40ba-8ecd-f2de607c9579" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_47d2d669-a729-48e0-89e0-4d42c87f5523" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSecuredDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a63240b4-f7d3-44a9-b850-39135c1b978b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_47d2d669-a729-48e0-89e0-4d42c87f5523" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_efd49be6-a92e-4257-b680-51fde3a35045" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_ProfitLoss_efd49be6-a92e-4257-b680-51fde3a35045" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_e1a155f3-1129-4994-983d-6ae93cc2d8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_ShareBasedCompensation_e1a155f3-1129-4994-983d-6ae93cc2d8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_6f2b0f90-ba42-4674-9f06-10683f8ae816" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_6f2b0f90-ba42-4674-9f06-10683f8ae816" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeNetAmortizationOfDiscountAndPremium_cf3df91a-a1bf-4435-a8a1-a7128ab7209f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InvestmentIncomeNetAmortizationOfDiscountAndPremium"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_InvestmentIncomeNetAmortizationOfDiscountAndPremium_cf3df91a-a1bf-4435-a8a1-a7128ab7209f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_f6fa8c4b-a4a7-4f30-bfc8-280155e2257d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_f6fa8c4b-a4a7-4f30-bfc8-280155e2257d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashExpense_8051c2ae-51d8-4809-81b9-825d117bb18e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_OtherNoncashExpense_8051c2ae-51d8-4809-81b9-825d117bb18e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_16ea1622-c091-4df9-a153-8eb9a50c8ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_16ea1622-c091-4df9-a153-8eb9a50c8ab9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset_e5fe7ee4-0556-4b56-ba99-a104273d2b17" xlink:href="ruby-20221231.xsd#ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset_e5fe7ee4-0556-4b56-ba99-a104273d2b17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b7caf75d-0892-4db3-9da9-462bab610000" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b7caf75d-0892-4db3-9da9-462bab610000" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1e634e52-8717-4ec3-bec5-f5fcef1bd0d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1e634e52-8717-4ec3-bec5-f5fcef1bd0d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities_57a26993-3d9b-4f3f-a644-298cbc422b69" xlink:href="ruby-20221231.xsd#ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities_57a26993-3d9b-4f3f-a644-298cbc422b69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_a022612a-aee1-4276-ab1a-13bd521b842a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_a022612a-aee1-4276-ab1a-13bd521b842a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_IncreaseDecreaseOperatingLeaseLiabilities_b1f1a816-2164-473b-a412-788ad6a74f26" xlink:href="ruby-20221231.xsd#ruby_IncreaseDecreaseOperatingLeaseLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_ruby_IncreaseDecreaseOperatingLeaseLiabilities_b1f1a816-2164-473b-a412-788ad6a74f26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b58f44be-6955-4e33-acf7-b4af21272c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6f52f710-4503-425e-8b62-3efc2f95db90" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b58f44be-6955-4e33-acf7-b4af21272c9e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/InvestmentsandFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#InvestmentsandFairValueofFinancialAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/InvestmentsandFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_41f772d6-2faa-46ab-914e-90dbf991bffd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_4b081042-ec56-43b1-85ad-3dabc6935544" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_41f772d6-2faa-46ab-914e-90dbf991bffd" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_4b081042-ec56-43b1-85ad-3dabc6935544" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/PropertyPlantandEquipmentNetandAssetsHeldforSaleDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#PropertyPlantandEquipmentNetandAssetsHeldforSaleDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/PropertyPlantandEquipmentNetandAssetsHeldforSaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c60733b8-cce1-4632-8e0e-f8426db0fcda" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_384d51ef-babd-4242-a77b-c17e7b40f8f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_c60733b8-cce1-4632-8e0e-f8426db0fcda" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_384d51ef-babd-4242-a77b-c17e7b40f8f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_c6e67690-ca1f-45f9-8a44-bdf388ea1a48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_c60733b8-cce1-4632-8e0e-f8426db0fcda" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_c6e67690-ca1f-45f9-8a44-bdf388ea1a48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#AccruedExpensesandOtherCurrentLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:href="ruby-20221231.xsd#ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedResearchAndDevelopmentCurrent_9f6c678f-024b-48ad-af47-efd69c868b90" xlink:href="ruby-20221231.xsd#ruby_AccruedResearchAndDevelopmentCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_AccruedResearchAndDevelopmentCurrent_9f6c678f-024b-48ad-af47-efd69c868b90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedGeneralAndAdministrativeExpensesCurrent_d5273ada-5113-4168-a9a6-cee27219c52a" xlink:href="ruby-20221231.xsd#ruby_AccruedGeneralAndAdministrativeExpensesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_AccruedGeneralAndAdministrativeExpensesCurrent_d5273ada-5113-4168-a9a6-cee27219c52a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedEmployeeTerminationBenefitsCurrent_0a48ea95-d2e0-4f0e-953a-6226fa312746" xlink:href="ruby-20221231.xsd#ruby_AccruedEmployeeTerminationBenefitsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_AccruedEmployeeTerminationBenefitsCurrent_0a48ea95-d2e0-4f0e-953a-6226fa312746" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_b6ffdc72-d28a-42ea-b053-530bf414daa2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_b6ffdc72-d28a-42ea-b053-530bf414daa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedManufacturingFacilityExpensesCurrent_4bf1bb4b-51d7-4566-af7a-6d11ccc9b2f6" xlink:href="ruby-20221231.xsd#ruby_AccruedManufacturingFacilityExpensesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_AccruedManufacturingFacilityExpensesCurrent_4bf1bb4b-51d7-4566-af7a-6d11ccc9b2f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_AccruedContractTerminationCostsCurrent_f3bcf4cc-fd9a-47b6-ac24-2daf5bbf8ee3" xlink:href="ruby-20221231.xsd#ruby_AccruedContractTerminationCostsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_AccruedContractTerminationCostsCurrent_f3bcf4cc-fd9a-47b6-ac24-2daf5bbf8ee3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6bdf49d3-008a-47bc-b425-ee2c83fb45b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6bdf49d3-008a-47bc-b425-ee2c83fb45b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DepositForAssetsHeldForSaleCurrent_16d38750-6fd5-4970-bd99-f0d47a6daa87" xlink:href="ruby-20221231.xsd#ruby_DepositForAssetsHeldForSaleCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_ab918f06-7177-422b-9b72-e8cdf98b4a30" xlink:to="loc_ruby_DepositForAssetsHeldForSaleCurrent_16d38750-6fd5-4970-bd99-f0d47a6daa87" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/DebtCurrentandNoncurrentDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#DebtCurrentandNoncurrentDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/DebtCurrentandNoncurrentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_51762a12-4166-431e-b5f9-71ad8bf1c3d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_d2a28b5f-2caf-4902-b499-69f1834bfad3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_51762a12-4166-431e-b5f9-71ad8bf1c3d2" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_d2a28b5f-2caf-4902-b499-69f1834bfad3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_d55b8742-ab33-4a2c-b89d-7a2ac7f9cc3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_51762a12-4166-431e-b5f9-71ad8bf1c3d2" xlink:to="loc_us-gaap_InterestPayableCurrent_d55b8742-ab33-4a2c-b89d-7a2ac7f9cc3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_LongTermDebtNetOfCurrent_0152b0f8-d123-47c3-99c9-74b432c2560a" xlink:href="ruby-20221231.xsd#ruby_LongTermDebtNetOfCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_51762a12-4166-431e-b5f9-71ad8bf1c3d2" xlink:to="loc_ruby_LongTermDebtNetOfCurrent_0152b0f8-d123-47c3-99c9-74b432c2560a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/IncomeTaxesUSfederalstatutoryincometaxrateDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#IncomeTaxesUSfederalstatutoryincometaxrateDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/IncomeTaxesUSfederalstatutoryincometaxrateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_fc5dafdf-46b4-4523-b02a-6914e67a9c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_fc5dafdf-46b4-4523-b02a-6914e67a9c6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e9a6169c-f223-4bd4-8eb7-a6d64a8a647f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e9a6169c-f223-4bd4-8eb7-a6d64a8a647f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_ba985a6a-2c88-42d6-95f4-3e6b5c3fa880" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_ba985a6a-2c88-42d6-95f4-3e6b5c3fa880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_1ca476b3-005d-4704-b859-5ffb569c6dd2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_1ca476b3-005d-4704-b859-5ffb569c6dd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_20c0f4c4-6f1b-42ac-88f6-50a1fa9ac52a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_20c0f4c4-6f1b-42ac-88f6-50a1fa9ac52a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_865a3203-7d2a-4016-a974-99c1bc600b05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_7516e486-be9e-403b-a4f1-59ab6f925a31" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_865a3203-7d2a-4016-a974-99c1bc600b05" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/IncomeTaxesNetdeferredtaxassetsDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#IncomeTaxesNetdeferredtaxassetsDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/IncomeTaxesNetdeferredtaxassetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts_8c26b09e-06d9-4383-a860-3c92a9aa18bc" xlink:href="ruby-20221231.xsd#ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts_8c26b09e-06d9-4383-a860-3c92a9aa18bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_3411d6fe-645e-4d04-a9f4-8512d0da56b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_3411d6fe-645e-4d04-a9f4-8512d0da56b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense_205c51c7-3c96-42f8-8d05-347456b8d38b" xlink:href="ruby-20221231.xsd#ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense_205c51c7-3c96-42f8-8d05-347456b8d38b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_0051206b-4cae-4d19-afbc-174bb71ddb32" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_0051206b-4cae-4d19-afbc-174bb71ddb32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_029b6829-c612-4a9e-b26f-db6836cbe418" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_029b6829-c612-4a9e-b26f-db6836cbe418" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DeferredTaxAssetsOperatingLeaseLiabilities_68f60222-17ea-42d2-8e7d-f90f175657aa" xlink:href="ruby-20221231.xsd#ruby_DeferredTaxAssetsOperatingLeaseLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_ruby_DeferredTaxAssetsOperatingLeaseLiabilities_68f60222-17ea-42d2-8e7d-f90f175657aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_dc1d9a30-094d-4846-94b2-32a3db9695f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_dc1d9a30-094d-4846-94b2-32a3db9695f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DeferredTaxAssetsDepreciation_172f2ea5-e365-4fd2-9430-f04655c47437" xlink:href="ruby-20221231.xsd#ruby_DeferredTaxAssetsDepreciation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ccabab3-5527-41b3-a3bf-8ce92b2296b9" xlink:to="loc_ruby_DeferredTaxAssetsDepreciation_172f2ea5-e365-4fd2-9430-f04655c47437" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_4f54fbc7-a9fa-4d42-9f65-a337fb44cbe0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_5df56a37-fe99-468a-964d-110ceaed0719" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_4f54fbc7-a9fa-4d42-9f65-a337fb44cbe0" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_5df56a37-fe99-468a-964d-110ceaed0719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_f1675cf8-2626-4c03-a361-8dce9e691c7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_4f54fbc7-a9fa-4d42-9f65-a337fb44cbe0" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_f1675cf8-2626-4c03-a361-8dce9e691c7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_d0784c74-a99a-4647-86fc-b8a32a99920e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_4f54fbc7-a9fa-4d42-9f65-a337fb44cbe0" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_d0784c74-a99a-4647-86fc-b8a32a99920e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_b77c4c35-6cbd-4578-a49a-b9e8541dee36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ruby_DeferredTaxLiabilitiesDepreciationAndOther_b76a0d73-1983-46de-a444-136c01e53e9b" xlink:href="ruby-20221231.xsd#ruby_DeferredTaxLiabilitiesDepreciationAndOther"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b77c4c35-6cbd-4578-a49a-b9e8541dee36" xlink:to="loc_ruby_DeferredTaxLiabilitiesDepreciationAndOther_b76a0d73-1983-46de-a444-136c01e53e9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_061c6bd7-b892-43e5-a7b4-9595cff95909" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_b77c4c35-6cbd-4578-a49a-b9e8541dee36" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_061c6bd7-b892-43e5-a7b4-9595cff95909" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/LeasesMinimumleasepaymentsDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#LeasesMinimumleasepaymentsDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/LeasesMinimumleasepaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_c1a97856-b791-44bc-96ab-5556d8cd07f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_c1a97856-b791-44bc-96ab-5556d8cd07f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_c32285ce-2be4-40cd-b236-41a4417e88dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_c32285ce-2be4-40cd-b236-41a4417e88dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_54f0d70c-ec7d-456d-b49e-a22f4aa6718a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_54f0d70c-ec7d-456d-b49e-a22f4aa6718a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_217b9023-3d5b-4e60-8456-7fa882324cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_217b9023-3d5b-4e60-8456-7fa882324cb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_29db6db9-2bd8-4fcb-9971-fb30a16d45c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_29db6db9-2bd8-4fcb-9971-fb30a16d45c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_62a32738-6448-40ac-b6d0-7a69a3eb1a8f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_9745a19c-d59e-4608-952f-6cdad448cd75" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_62a32738-6448-40ac-b6d0-7a69a3eb1a8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.rubiustx.com/role/LeasesLeasePortfolioDetails" xlink:type="simple" xlink:href="ruby-20221231.xsd#LeasesLeasePortfolioDetails"/>
  <link:calculationLink xlink:role="http://www.rubiustx.com/role/LeasesLeasePortfolioDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_85e6a1b8-1376-488f-839f-c1004ff3388a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_b151bb49-1a70-43a5-98a5-b2638c36f944" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_85e6a1b8-1376-488f-839f-c1004ff3388a" xlink:to="loc_us-gaap_OperatingLeaseCost_b151bb49-1a70-43a5-98a5-b2638c36f944" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_4d8dded4-45d0-4b27-801a-d630b4511428" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_85e6a1b8-1376-488f-839f-c1004ff3388a" xlink:to="loc_us-gaap_ShortTermLeaseCost_4d8dded4-45d0-4b27-801a-d630b4511428" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_2e3edffe-3929-4c5e-bd07-5bb709e5eadd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_85e6a1b8-1376-488f-839f-c1004ff3388a" xlink:to="loc_us-gaap_VariableLeaseCost_2e3edffe-3929-4c5e-bd07-5bb709e5eadd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_d8803562-3f99-40fa-ab1b-c91df51e0be3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_85e6a1b8-1376-488f-839f-c1004ff3388a" xlink:to="loc_us-gaap_SubleaseIncome_d8803562-3f99-40fa-ab1b-c91df51e0be3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
