Jamie Borthwick, who plays Jay Brown in EastEnders, will run the London Marathon in character, with a BBC film crew following him.
The actors will be running for charities separate from their characters.
This is not the first time EastEnders has blended reality with fiction, as live footage of Perry Fenwick carrying the Olympic Torch aired in 2012.