v3.19.3.a.u2

Related Party Transactions - Schedule of Redeemable Preferred Stock Issued to Related Parties (Details) - Series G Redeemable Convertible Preferred Stock - USD ($) $ in Thousands | 1 Months Ended
--- | ---
Feb. 28, 2018 | Feb. 15, 2018 | Feb. 12, 2018
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) | 55,666,004 | 55,666,004 |
Aggregate purchase price | $ 560,000 | $ 560,000 |
Affiliated Entity | OCHA LLC |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 50,000 |
Aggregate purchase price |  | $ 503 |
Affiliated Entity | VGE III Portfolio Ltd |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 279,160 |
Affiliated Entity | Viking Global Equities LP |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 148,974 |
Affiliated Entity | Viking Global Equities II LP |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 8,737 |
Affiliated Entity | Viking Global Opportunities Illiquid Investments Sub-Master LP |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 129,537 |
Affiliated Entity | Viking Long Fund Master Ltd |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  |  | 179,118
Investee | Viking Global Investors LP and affiiated entities |  |  |
Related Party Transaction [Line Items] |  |  |
Shares of stock issued (in shares) |  | 745,526 |
Aggregate purchase price |  | $ 7,500 |

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Cash received on stock transaction after deduction of issuance costs. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedOnTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesGPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=srt_AffiliatedEntityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_OCHALLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VGEIIIPortfolioLtdMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VikingGlobalEquitiesLPMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VikingGlobalEquitiesIILPMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VikingGlobalOpportunitiesIlliquidInvestmentsSubMasterLPMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VikingLongFundMasterLtdMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=us-gaap_InvesteeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mrna_VikingGlobalInvestorsLPAndAffiliatedEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |